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