about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/monitoring/prometheus/junos-czerwonk-exporter.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/monitoring/prometheus/junos-czerwonk-exporter.nix')
-rw-r--r--nixpkgs/pkgs/servers/monitoring/prometheus/junos-czerwonk-exporter.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/monitoring/prometheus/junos-czerwonk-exporter.nix b/nixpkgs/pkgs/servers/monitoring/prometheus/junos-czerwonk-exporter.nix
new file mode 100644
index 000000000000..37631a00c679
--- /dev/null
+++ b/nixpkgs/pkgs/servers/monitoring/prometheus/junos-czerwonk-exporter.nix
@@ -0,0 +1,23 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "junos-czerwonk-exporter";
+  version = "0.12.2";
+
+  src = fetchFromGitHub {
+    owner = "czerwonk";
+    repo = "junos_exporter";
+    rev = version;
+    sha256 = "sha256-KdVyRddAr2gqiFyIGBfWbi4DHAaiey4p4OBFND/2u7U=";
+  };
+
+  vendorHash = "sha256-fytDr56ZhhO5u6u9CRIEKXGqgnzntSVqEVItibpLyPM=";
+
+  meta = with lib; {
+    description = "Exporter for metrics from devices running JunOS";
+    mainProgram = "junos_exporter";
+    homepage = "https://github.com/czerwonk/junos_exporter";
+    license = licenses.mit;
+    maintainers = teams.wdz.members;
+  };
+}