prometheus-nut-exporter: init at 2.4.2

This commit is contained in:
Jeff Hutchison 2022-11-24 07:48:45 -05:00
parent 097eb8257e
commit 0dc5bbbde9
No known key found for this signature in database
GPG Key ID: 26960A62CBEEC91D
2 changed files with 23 additions and 0 deletions

View 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 ];
};
}

View File

@ -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
};