2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2017-07-07 11:01:45 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "consul_exporter";
|
2020-10-22 09:01:49 +02:00
|
|
|
version = "0.7.1";
|
2017-07-07 11:01:45 +02:00
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/consul_exporter";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "prometheus";
|
|
|
|
repo = "consul_exporter";
|
|
|
|
rev = "v${version}";
|
2020-10-22 09:01:49 +02:00
|
|
|
sha256 = "16ibafcbpiplsh1awcvblzzf2cbr4baf8wiwpdpibgmcwwf9m5ya";
|
2017-07-07 11:01:45 +02:00
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|