2017-07-07 11:01:45 +02:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "consul_exporter";
|
2017-07-07 11:01:45 +02:00
|
|
|
version = "0.3.0";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/consul_exporter";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "prometheus";
|
|
|
|
repo = "consul_exporter";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1zffbxyfmqpbdqkx5rb5vjgd9j4p4zcrh6jvn1zhbdzrcs7khnd9";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|