diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-05-24 04:27:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-24 04:27:16 +0200 |
commit | fd26001eadb620de4d08e98121ab71ff99fed066 (patch) | |
tree | 23c9083dbb040ba01229a213942f07251e8b1ee1 /pkgs/servers | |
parent | 8d7d6f8c16dd0f57501cff553a5542e76e2b75ae (diff) | |
parent | 541ff510da58cab359658cf76177920819e45bdf (diff) |
Merge pull request #123304 from SuperSandro2000/pihole-exporter
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/monitoring/prometheus/pihole-exporter.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/servers/monitoring/prometheus/pihole-exporter.nix b/pkgs/servers/monitoring/prometheus/pihole-exporter.nix new file mode 100644 index 0000000000000..e24d0232dfe25 --- /dev/null +++ b/pkgs/servers/monitoring/prometheus/pihole-exporter.nix @@ -0,0 +1,22 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "pihole-exporter"; + version = "0.0.11"; + + src = fetchFromGitHub { + owner = "eko"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-SojEq6pedoq08wo/3zPHex7ex1QqSVIzZpBd49tLOjI="; + }; + + vendorSha256 = "sha256-LXgI9ioJgyhUiOCqRku0Q4enZF7q6MB0hYhPJlLusdc="; + + meta = with lib; { + description = "Prometheus exporter for PI-Hole's Raspberry PI ad blocker"; + homepage = "https://github.com/eko/pihole-exporter"; + license = licenses.mit; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} |