diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/monitoring/prometheus/haproxy-exporter.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/monitoring/prometheus/haproxy-exporter.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/monitoring/prometheus/haproxy-exporter.nix b/nixpkgs/pkgs/servers/monitoring/prometheus/haproxy-exporter.nix new file mode 100644 index 000000000000..b2a0e3875891 --- /dev/null +++ b/nixpkgs/pkgs/servers/monitoring/prometheus/haproxy-exporter.nix @@ -0,0 +1,24 @@ +{ stdenv, buildGoPackage, fetchFromGitHub }: + +buildGoPackage rec { + name = "haproxy_exporter-${version}"; + version = "0.8.0"; + rev = "v${version}"; + + goPackagePath = "github.com/prometheus/haproxy_exporter"; + + src = fetchFromGitHub { + inherit rev; + owner = "prometheus"; + repo = "haproxy_exporter"; + sha256 = "0gx8pq67w71ch3g3c77xaz39msrd9graizc6d3shwabdjx35yc6q"; + }; + + meta = with stdenv.lib; { + description = "HAProxy Exporter for the Prometheus monitoring system"; + homepage = https://github.com/prometheus/haproxy_exporter; + license = licenses.asl20; + maintainers = with maintainers; [ benley fpletz ]; + platforms = platforms.unix; + }; +} |