2022-05-04 18:51:52 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2016-06-05 15:16:50 +02:00
|
|
|
|
2022-05-04 18:51:52 +02:00
|
|
|
buildGoModule rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "haproxy_exporter";
|
2022-05-04 18:51:52 +02:00
|
|
|
version = "0.13.0";
|
2016-06-05 15:16:50 +02:00
|
|
|
|
2016-06-06 12:26:56 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "prometheus";
|
|
|
|
repo = "haproxy_exporter";
|
2022-05-04 18:51:52 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-F0yYUIKTIGyhzL0QwmioQYnWBb0GeFOhBwL3IqDKoQA=";
|
2016-06-05 15:16:50 +02:00
|
|
|
};
|
|
|
|
|
2022-05-04 18:51:52 +02:00
|
|
|
vendorSha256 = "sha256-iJ2doxsLqTitsKJg3PUFLzEtLlP5QckSdFZkXX3ALIE=";
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-06-05 15:16:50 +02:00
|
|
|
description = "HAProxy Exporter for the Prometheus monitoring system";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/prometheus/haproxy_exporter";
|
2016-06-05 15:16:50 +02:00
|
|
|
license = licenses.asl20;
|
2022-08-03 14:13:56 +02:00
|
|
|
maintainers = with maintainers; [ benley ];
|
2016-06-05 15:16:50 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|