prometheus-zfs-exporter: init at 2.2.5
This commit is contained in:
parent
625a6d0c11
commit
65f39b913d
30
pkgs/servers/monitoring/prometheus/zfs-exporter.nix
Normal file
30
pkgs/servers/monitoring/prometheus/zfs-exporter.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ buildGoModule
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "zfs_exporter";
|
||||
version = "2.2.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pdf";
|
||||
repo = pname;
|
||||
rev = "v" + version;
|
||||
hash = "sha256-FY3P2wmNWyr7mImc1PJs1G2Ae8rZvDzq0kRZfiRTzyc=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-jQiw3HlqWcsjdadDdovCsDMBB3rnWtacfbtzDb5rc9c=";
|
||||
|
||||
postInstall = ''
|
||||
install -Dm444 -t $out/share/doc/${pname} *.md
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "ZFS Exporter for the Prometheus monitoring system";
|
||||
homepage = "https://github.com/pdf/zfs_exporter";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -23105,6 +23105,7 @@ with pkgs;
|
|||
prometheus-wireguard-exporter = callPackage ../servers/monitoring/prometheus/wireguard-exporter.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
prometheus-zfs-exporter = callPackage ../servers/monitoring/prometheus/zfs-exporter.nix { };
|
||||
prometheus-xmpp-alerts = callPackage ../servers/monitoring/prometheus/xmpp-alerts.nix { };
|
||||
|
||||
prometheus-cpp = callPackage ../development/libraries/prometheus-cpp { };
|
||||
|
|
Loading…
Reference in a new issue