prometheus-nut-exporter: init at 2.4.2
This commit is contained in:
parent
097eb8257e
commit
0dc5bbbde9
22
pkgs/servers/monitoring/prometheus/nut-exporter.nix
Normal file
22
pkgs/servers/monitoring/prometheus/nut-exporter.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -24348,6 +24348,7 @@ with pkgs;
|
||||
prometheus-node-exporter = callPackage ../servers/monitoring/prometheus/node-exporter.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreFoundation IOKit;
|
||||
};
|
||||
prometheus-nut-exporter = callPackage ../servers/monitoring/prometheus/nut-exporter.nix { };
|
||||
prometheus-openldap-exporter = callPackage ../servers/monitoring/prometheus/openldap-exporter.nix {
|
||||
buildGoModule = buildGo118Module; # nixosTests.prometheus-exporter.ldap fails with 1.19
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user