2022-04-10 01:42:53 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2017-07-07 10:01:45 +01:00
|
|
|
|
2022-04-10 01:42:53 +01:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "consul_exporter";
|
2022-04-10 01:42:53 +01:00
|
|
|
version = "0.8.0";
|
2017-07-07 10:01:45 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "prometheus";
|
|
|
|
repo = "consul_exporter";
|
|
|
|
rev = "v${version}";
|
2022-04-10 01:42:53 +01:00
|
|
|
sha256 = "sha256-5odAKMWK2tDZ3a+bIVIdPgzxrW64hF8nNqItGO7sODI=";
|
2017-07-07 10:01:45 +01:00
|
|
|
};
|
|
|
|
|
2022-04-10 01:42:53 +01:00
|
|
|
vendorSha256 = "sha256-vbaiHeQRo9hsHa/10f4202xLe9mduELRJMCDFuyKlW0=";
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-07-07 10:01:45 +01:00
|
|
|
description = "Prometheus exporter for Consul metrics";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/prometheus/consul_exporter";
|
2017-07-07 10:01:45 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ hectorj ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|