diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-03-21 21:39:46 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-05-26 16:50:30 +0100 |
| commit | 5fcc5e94d267db656242957a24cd465b360f7d11 (patch) | |
| tree | 247dfa1f45115ffc71189755bcdd0e5b93913a05 /gnu/packages | |
| parent | 41167e3e7b5bd7bf1a9660504d83325806cf4776 (diff) | |
gnu: prometheus-node-exporter: Fix indentation.
* gnu/packages/monitoring.scm (prometheus-node-exporter): Fix indentation.
Change-Id: I25440eafe6663e6601f840fb5385b0676be16eab
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/monitoring.scm | 152 |
1 files changed, 76 insertions, 76 deletions
diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm index 0e980eb2f7b..b66862a321f 100644 --- a/gnu/packages/monitoring.scm +++ b/gnu/packages/monitoring.scm | |||
| @@ -553,83 +553,83 @@ WSGI and the node exporter textfile collector.") | |||
| 553 | (license license:asl2.0))) | 553 | (license license:asl2.0))) |
| 554 | 554 | ||
| 555 | (define-public prometheus-node-exporter | 555 | (define-public prometheus-node-exporter |
| 556 | (package | 556 | (package |
| 557 | (name "prometheus-node-exporter") | 557 | (name "prometheus-node-exporter") |
| 558 | (version "1.9.0") | 558 | (version "1.9.0") |
| 559 | (source (origin | 559 | (source |
| 560 | (method git-fetch) | 560 | (origin |
| 561 | (uri (git-reference | 561 | (method git-fetch) |
| 562 | (url "https://github.com/prometheus/node_exporter") | 562 | (uri (git-reference |
| 563 | (commit (string-append "v" version)))) | 563 | (url "https://github.com/prometheus/node_exporter") |
| 564 | (file-name (git-file-name name version)) | 564 | (commit (string-append "v" version)))) |
| 565 | (sha256 | 565 | (file-name (git-file-name name version)) |
| 566 | (base32 | 566 | (sha256 |
| 567 | "0xs57jlmjj1vqac6xlkygg3xb08g356nlnc852ds1ia87911jvls")))) | 567 | (base32 "0xs57jlmjj1vqac6xlkygg3xb08g356nlnc852ds1ia87911jvls")))) |
| 568 | (build-system go-build-system) | 568 | (build-system go-build-system) |
| 569 | (arguments | 569 | (arguments |
| 570 | (list | 570 | (list |
| 571 | #:install-source? #f | 571 | #:install-source? #f |
| 572 | #:build-flags | 572 | #:build-flags |
| 573 | #~(list (string-append | 573 | #~(list (string-append |
| 574 | "-ldflags=" | 574 | "-ldflags=" |
| 575 | "-X github.com/prometheus/common/version.Version=" #$version | 575 | "-X github.com/prometheus/common/version.Version=" #$version |
| 576 | " -X github.com/prometheus/common/version.Revision=0" | 576 | " -X github.com/prometheus/common/version.Revision=0" |
| 577 | " -X github.com/prometheus/common/version.Branch=master" | 577 | " -X github.com/prometheus/common/version.Branch=master" |
| 578 | " -X github.com/prometheus/common/version.BuildUser=guix" | 578 | " -X github.com/prometheus/common/version.BuildUser=guix" |
| 579 | " -X github.com/prometheus/common/version.BuildDate=n/a")) | 579 | " -X github.com/prometheus/common/version.BuildDate=n/a")) |
| 580 | #:embed-files #~(list "landing_page.css" "landing_page.html") | 580 | #:embed-files #~(list "landing_page.css" "landing_page.html") |
| 581 | #:import-path "github.com/prometheus/node_exporter" | 581 | #:import-path "github.com/prometheus/node_exporter" |
| 582 | #:phases | 582 | #:phases |
| 583 | #~(modify-phases %standard-phases | 583 | #~(modify-phases %standard-phases |
| 584 | (add-before 'check 'pre-check | 584 | (add-before 'check 'pre-check |
| 585 | (lambda* (#:key tests? import-path #:allow-other-keys) | 585 | (lambda* (#:key tests? import-path #:allow-other-keys) |
| 586 | (with-directory-excursion (string-append "src/" import-path) | 586 | (with-directory-excursion (string-append "src/" import-path) |
| 587 | (invoke "./ttar" "-C" "collector/fixtures" | 587 | (invoke "./ttar" "-C" "collector/fixtures" |
| 588 | "-x" "-f" "collector/fixtures/sys.ttar") | 588 | "-x" "-f" "collector/fixtures/sys.ttar") |
| 589 | (invoke "./ttar" "-C" "collector/fixtures" | 589 | (invoke "./ttar" "-C" "collector/fixtures" |
| 590 | "-x" "-f" "collector/fixtures/udev.ttar")))) | 590 | "-x" "-f" "collector/fixtures/udev.ttar")))) |
| 591 | (add-after 'check 'post-check | 591 | (add-after 'check 'post-check |
| 592 | (lambda* (#:key tests? import-path #:allow-other-keys) | 592 | (lambda* (#:key tests? import-path #:allow-other-keys) |
| 593 | (with-directory-excursion (string-append "src/" import-path) | 593 | (with-directory-excursion (string-append "src/" import-path) |
| 594 | (for-each delete-file-recursively | 594 | (for-each delete-file-recursively |
| 595 | (list "collector/fixtures/sys" | 595 | (list "collector/fixtures/sys" |
| 596 | "collector/fixtures/sys.ttar" | 596 | "collector/fixtures/sys.ttar" |
| 597 | "collector/fixtures/udev" | 597 | "collector/fixtures/udev" |
| 598 | "collector/fixtures/udev.ttar")))))))) | 598 | "collector/fixtures/udev.ttar")))))))) |
| 599 | (propagated-inputs | 599 | (propagated-inputs |
| 600 | (list go-github-com-alecthomas-kingpin-v2 | 600 | (list go-github-com-alecthomas-kingpin-v2 |
| 601 | go-github-com-beevik-ntp | 601 | go-github-com-beevik-ntp |
| 602 | go-github-com-coreos-go-systemd-v22 | 602 | go-github-com-coreos-go-systemd-v22 |
| 603 | go-github-com-dennwc-btrfs | 603 | go-github-com-dennwc-btrfs |
| 604 | go-github-com-ema-qdisc | 604 | go-github-com-ema-qdisc |
| 605 | go-github-com-go-kit-log | 605 | go-github-com-go-kit-log |
| 606 | go-github-com-godbus-dbus-v5 | 606 | go-github-com-godbus-dbus-v5 |
| 607 | go-github-com-hashicorp-go-envparse | 607 | go-github-com-hashicorp-go-envparse |
| 608 | go-github-com-hodgesds-perf-utils | 608 | go-github-com-hodgesds-perf-utils |
| 609 | go-github-com-josharian-native | 609 | go-github-com-josharian-native |
| 610 | go-github-com-jsimonetti-rtnetlink | 610 | go-github-com-jsimonetti-rtnetlink |
| 611 | go-github-com-mattn-go-xmlrpc | 611 | go-github-com-mattn-go-xmlrpc |
| 612 | go-github-com-mdlayher-ethtool | 612 | go-github-com-mdlayher-ethtool |
| 613 | go-github-com-mdlayher-netlink | 613 | go-github-com-mdlayher-netlink |
| 614 | go-github-com-mdlayher-wifi | 614 | go-github-com-mdlayher-wifi |
| 615 | go-github-com-jsimonetti-rtnetlink-v2 | 615 | go-github-com-jsimonetti-rtnetlink-v2 |
| 616 | go-github-com-opencontainers-selinux | 616 | go-github-com-opencontainers-selinux |
| 617 | go-github-com-prometheus-client-golang | 617 | go-github-com-prometheus-client-golang |
| 618 | go-github-com-prometheus-client-model | 618 | go-github-com-prometheus-client-model |
| 619 | go-github-com-prometheus-common | 619 | go-github-com-prometheus-common |
| 620 | go-github-com-prometheus-community-go-runit | 620 | go-github-com-prometheus-community-go-runit |
| 621 | go-github-com-prometheus-exporter-toolkit | 621 | go-github-com-prometheus-exporter-toolkit |
| 622 | go-github-com-prometheus-procfs-next | 622 | go-github-com-prometheus-procfs-next |
| 623 | go-github-com-safchain-ethtool | 623 | go-github-com-safchain-ethtool |
| 624 | go-golang-org-x-exp | 624 | go-golang-org-x-exp |
| 625 | go-golang-org-x-sys | 625 | go-golang-org-x-sys |
| 626 | go-howett-net-plist)) | 626 | go-howett-net-plist)) |
| 627 | (home-page "https://github.com/prometheus/node_exporter") | 627 | (home-page "https://github.com/prometheus/node_exporter") |
| 628 | (synopsis "Prometheus exporter for hardware and OS metrics") | 628 | (synopsis "Prometheus exporter for hardware and OS metrics") |
| 629 | (description | 629 | (description |
| 630 | "Prometheus exporter for metrics exposed by *NIX kernels, | 630 | "Prometheus exporter for metrics exposed by *NIX kernels, |
| 631 | written in Go with pluggable metric collectors.") | 631 | written in Go with pluggable metric collectors.") |
| 632 | (license license:asl2.0))) | 632 | (license license:asl2.0))) |
| 633 | 633 | ||
| 634 | (define-public go-github-com-prometheus-node-exporter | 634 | (define-public go-github-com-prometheus-node-exporter |
| 635 | (deprecated-package "go-github-com-prometheus-node-exporter" | 635 | (deprecated-package "go-github-com-prometheus-node-exporter" |
