diff options
author | Flakebi <flakebi@t-online.de> | 2021-05-18 22:49:32 +0200 |
---|---|---|
committer | Flakebi <flakebi@t-online.de> | 2021-06-06 22:42:45 +0200 |
commit | d83bd16a2eab64e3e1b67cd5689807ec844450ba (patch) | |
tree | 9557fb04f502d258b60cff4cad99b93d88cfcbb5 /pkgs/servers | |
parent | 1e5e12d73532d926f43f0ecec6869d40f0cbc77c (diff) |
prometheus-script-exporter: init at 1.2.0
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/monitoring/prometheus/script-exporter.nix | 25 |
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 0000000000000..d0806b6c5fa4e --- /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; + }; +} |