diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-12-03 02:22:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-03 02:22:48 +0100 |
commit | 068e7cb3409852b18ff9eceac7932dba4d1e1fb2 (patch) | |
tree | ea24cde6c3beca739c011eeafcfd1d72fabe376a /pkgs/servers/monitoring | |
parent | cee75d23a9825985cad20b0deaac752766f6725c (diff) | |
parent | a587e528c50d11b4d4e26a7dbd0b4ec6bd511bf3 (diff) |
Merge pull request #201817 from jhh/nut-exporter
Diffstat (limited to 'pkgs/servers/monitoring')
-rw-r--r-- | pkgs/servers/monitoring/prometheus/nut-exporter.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/servers/monitoring/prometheus/nut-exporter.nix b/pkgs/servers/monitoring/prometheus/nut-exporter.nix new file mode 100644 index 0000000000000..9877d7639bdce --- /dev/null +++ b/pkgs/servers/monitoring/prometheus/nut-exporter.nix @@ -0,0 +1,22 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "nut-exporter"; + version = "2.4.2"; + + src = fetchFromGitHub { + owner = "DRuggeri"; + repo = "nut_exporter"; + rev = "v${version}"; + sha256 = "sha256-fymVx6FJGII2PmWXVfeCRTxfO+35bmyn/9iL0iPuBgo="; + }; + + vendorSha256 = "sha256-ji8JlEYChPBakt5y6+zcm1l04VzZ0/fjfGFJ9p+1KHE="; + + meta = with lib; { + description = "Prometheus exporter for Network UPS Tools"; + homepage = "https://github.com/DRuggeri/nut_exporter"; + license = licenses.asl20; + maintainers = with maintainers; [ jhh ]; + }; +} |