diff options
author | WilliButz <WilliButz@users.noreply.github.com> | 2021-05-14 14:38:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-14 14:38:08 +0200 |
commit | 94b2848559b12a8ed1fe433084686b2a81123c99 (patch) | |
tree | d15684acd821596f130e675052f9eb724181c229 /pkgs/servers/monitoring | |
parent | b08e223a048022dcbaaeb82943f7c4e8e870397d (diff) | |
parent | dd7e1834ca455d9843d2b54f425ad1243322068f (diff) | |
download | nixpkgs-94b2848559b12a8ed1fe433084686b2a81123c99.tar nixpkgs-94b2848559b12a8ed1fe433084686b2a81123c99.tar.gz nixpkgs-94b2848559b12a8ed1fe433084686b2a81123c99.tar.bz2 nixpkgs-94b2848559b12a8ed1fe433084686b2a81123c99.tar.lz nixpkgs-94b2848559b12a8ed1fe433084686b2a81123c99.tar.xz nixpkgs-94b2848559b12a8ed1fe433084686b2a81123c99.tar.zst nixpkgs-94b2848559b12a8ed1fe433084686b2a81123c99.zip |
Merge pull request #91663 from mweinelt/kea-exporter
prometheus-kea-exporter: init at 0.4.1
Diffstat (limited to 'pkgs/servers/monitoring')
-rw-r--r-- | pkgs/servers/monitoring/prometheus/kea-exporter.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/servers/monitoring/prometheus/kea-exporter.nix b/pkgs/servers/monitoring/prometheus/kea-exporter.nix new file mode 100644 index 00000000000..1f5ff7c0223 --- /dev/null +++ b/pkgs/servers/monitoring/prometheus/kea-exporter.nix @@ -0,0 +1,33 @@ +{ lib, python3Packages, nixosTests }: + +python3Packages.buildPythonApplication rec { + pname = "kea-exporter"; + version = "0.4.2"; + + src = python3Packages.fetchPypi { + inherit pname version; + sha256 = "0dpzicv0ksyda2lprldkj452c23qycl5c9avca6x7f7rbqry9pnd"; + }; + + propagatedBuildInputs = with python3Packages; [ + click + prometheus_client + ]; + + checkPhase = '' + $out/bin/kea-exporter --help > /dev/null + $out/bin/kea-exporter --version | grep -q ${version} + ''; + + passthru.tests = { + inherit (nixosTests.prometheus-exporters) kea; + }; + + meta = with lib; { + description = "Export Kea Metrics in the Prometheus Exposition Format"; + homepage = "https://github.com/mweinelt/kea-exporter"; + license = licenses.mit; + maintainers = with maintainers; [ hexa ]; + }; +} + |