diff options
Diffstat (limited to 'pkgs/servers/monitoring/prometheus/consul-exporter.nix')
-rw-r--r-- | pkgs/servers/monitoring/prometheus/consul-exporter.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/servers/monitoring/prometheus/consul-exporter.nix b/pkgs/servers/monitoring/prometheus/consul-exporter.nix new file mode 100644 index 00000000000..c3cc7eff90a --- /dev/null +++ b/pkgs/servers/monitoring/prometheus/consul-exporter.nix @@ -0,0 +1,23 @@ +{ lib, buildGoPackage, fetchFromGitHub }: + +buildGoPackage rec { + pname = "consul_exporter"; + version = "0.7.1"; + + goPackagePath = "github.com/prometheus/consul_exporter"; + + src = fetchFromGitHub { + owner = "prometheus"; + repo = "consul_exporter"; + rev = "v${version}"; + sha256 = "16ibafcbpiplsh1awcvblzzf2cbr4baf8wiwpdpibgmcwwf9m5ya"; + }; + + meta = with lib; { + description = "Prometheus exporter for Consul metrics"; + homepage = "https://github.com/prometheus/consul_exporter"; + license = licenses.asl20; + maintainers = with maintainers; [ hectorj ]; + platforms = platforms.unix; + }; +} |