diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/monitoring/prometheus/bind-exporter.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/monitoring/prometheus/bind-exporter.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/monitoring/prometheus/bind-exporter.nix b/nixpkgs/pkgs/servers/monitoring/prometheus/bind-exporter.nix new file mode 100644 index 000000000000..1ee84e5e703a --- /dev/null +++ b/nixpkgs/pkgs/servers/monitoring/prometheus/bind-exporter.nix @@ -0,0 +1,24 @@ +{ lib, buildGoModule, fetchFromGitHub, nixosTests }: + +buildGoModule rec { + pname = "bind_exporter"; + version = "0.7.0"; + + src = fetchFromGitHub { + rev = "v${version}"; + owner = "prometheus-community"; + repo = "bind_exporter"; + sha256 = "sha256-x/XGatlXCKo9cI92JzFItApsjuZAfZX+8IZRpy7PVUo="; + }; + + vendorHash = "sha256-f0ei/zotOj5ebURAOWUox/7J3jS2abQ5UgjninI9nRk="; + + passthru.tests = { inherit (nixosTests.prometheus-exporters) bind; }; + + meta = with lib; { + description = "Prometheus exporter for bind9 server"; + homepage = "https://github.com/digitalocean/bind_exporter"; + license = licenses.asl20; + maintainers = with maintainers; [ rtreffer ]; + }; +} |