summary refs log tree commit diff
path: root/pkgs/servers/monitoring
diff options
context:
space:
mode:
authorFlakebi <flakebi@t-online.de>2021-05-18 22:49:32 +0200
committerFlakebi <flakebi@t-online.de>2021-06-06 22:42:45 +0200
commitd83bd16a2eab64e3e1b67cd5689807ec844450ba (patch)
tree9557fb04f502d258b60cff4cad99b93d88cfcbb5 /pkgs/servers/monitoring
parent1e5e12d73532d926f43f0ecec6869d40f0cbc77c (diff)
downloadnixpkgs-d83bd16a2eab64e3e1b67cd5689807ec844450ba.tar
nixpkgs-d83bd16a2eab64e3e1b67cd5689807ec844450ba.tar.gz
nixpkgs-d83bd16a2eab64e3e1b67cd5689807ec844450ba.tar.bz2
nixpkgs-d83bd16a2eab64e3e1b67cd5689807ec844450ba.tar.lz
nixpkgs-d83bd16a2eab64e3e1b67cd5689807ec844450ba.tar.xz
nixpkgs-d83bd16a2eab64e3e1b67cd5689807ec844450ba.tar.zst
nixpkgs-d83bd16a2eab64e3e1b67cd5689807ec844450ba.zip
prometheus-script-exporter: init at 1.2.0
Diffstat (limited to 'pkgs/servers/monitoring')
-rw-r--r--pkgs/servers/monitoring/prometheus/script-exporter.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/servers/monitoring/prometheus/script-exporter.nix b/pkgs/servers/monitoring/prometheus/script-exporter.nix
new file mode 100644
index 00000000000..d0806b6c5fa
--- /dev/null
+++ b/pkgs/servers/monitoring/prometheus/script-exporter.nix
@@ -0,0 +1,25 @@
+{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
+
+buildGoModule rec {
+  pname = "script_exporter";
+  version = "1.2.0";
+
+  src = fetchFromGitHub {
+    owner = "adhocteam";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "t/xgRalcHxEcT1peU1ePJUItD02rQdfz1uWpXDBo6C0=";
+  };
+
+  vendorSha256 = "Hs1SNpC+t1OCcoF3FBgpVGkhR97ulq6zYhi8BQlgfVc=";
+
+  passthru.tests = { inherit (nixosTests.prometheus-exporters) script; };
+
+  meta = with lib; {
+    description = "Shell script prometheus exporter";
+    homepage = "https://github.com/adhocteam/script_exporter";
+    license = licenses.mit;
+    maintainers = with maintainers; [ Flakebi ];
+    platforms = platforms.linux;
+  };
+}