2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 13:16:50 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "haproxy_exporter";
|
2021-05-11 04:26:04 +00:00
|
|
|
version = "0.12.0";
|
2016-06-05 13:16:50 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/haproxy_exporter";
|
|
|
|
|
2016-06-06 10:26:56 +00:00
|
|
|
src = fetchFromGitHub {
|
2021-05-11 04:26:04 +00:00
|
|
|
rev = "v${version}";
|
2016-06-06 10:26:56 +00:00
|
|
|
owner = "prometheus";
|
|
|
|
repo = "haproxy_exporter";
|
2021-05-11 04:26:04 +00:00
|
|
|
sha256 = "09aqm2zqimn6w10p1nhnpjcigm299b31xfrq8ma0d7z4v9p2y9dn";
|
2016-06-05 13:16:50 +00:00
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-06-05 13:16:50 +00:00
|
|
|
description = "HAProxy Exporter for the Prometheus monitoring system";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/prometheus/haproxy_exporter";
|
2016-06-05 13:16:50 +00:00
|
|
|
license = licenses.asl20;
|
2016-12-01 00:41:36 +00:00
|
|
|
maintainers = with maintainers; [ benley fpletz ];
|
2016-06-05 13:16:50 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|