2016-12-01 00:41:36 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 14:16:50 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "haproxy_exporter";
|
2017-08-27 22:17:35 +01:00
|
|
|
version = "0.8.0";
|
2016-12-01 00:41:36 +00:00
|
|
|
rev = "v${version}";
|
2016-06-05 14:16:50 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/haproxy_exporter";
|
|
|
|
|
2016-06-06 11:26:56 +01:00
|
|
|
src = fetchFromGitHub {
|
2016-06-05 14:16:50 +01:00
|
|
|
inherit rev;
|
2016-06-06 11:26:56 +01:00
|
|
|
owner = "prometheus";
|
|
|
|
repo = "haproxy_exporter";
|
2017-08-27 22:17:35 +01:00
|
|
|
sha256 = "0gx8pq67w71ch3g3c77xaz39msrd9graizc6d3shwabdjx35yc6q";
|
2016-06-05 14:16:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "HAProxy Exporter for the Prometheus monitoring system";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/prometheus/haproxy_exporter";
|
2016-06-05 14:16:50 +01:00
|
|
|
license = licenses.asl20;
|
2016-12-01 00:41:36 +00:00
|
|
|
maintainers = with maintainers; [ benley fpletz ];
|
2016-06-05 14:16:50 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|