2022-05-04 16:51:52 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2016-06-05 13:16:50 +00:00
|
|
|
|
2022-05-04 16:51:52 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "haproxy_exporter";
|
2022-05-04 16:51:52 +00:00
|
|
|
version = "0.13.0";
|
2016-06-05 13:16:50 +00:00
|
|
|
|
2016-06-06 10:26:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "prometheus";
|
|
|
|
repo = "haproxy_exporter";
|
2022-05-04 16:51:52 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-F0yYUIKTIGyhzL0QwmioQYnWBb0GeFOhBwL3IqDKoQA=";
|
2016-06-05 13:16:50 +00:00
|
|
|
};
|
|
|
|
|
2022-05-04 16:51:52 +00:00
|
|
|
vendorSha256 = "sha256-iJ2doxsLqTitsKJg3PUFLzEtLlP5QckSdFZkXX3ALIE=";
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
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;
|
2022-08-03 12:13:56 +00:00
|
|
|
maintainers = with maintainers; [ benley ];
|
2016-06-05 13:16:50 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|