2016-12-01 00:41:36 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 13:16:50 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "haproxy_exporter-${version}";
|
2016-12-01 00:41:36 +00:00
|
|
|
version = "0.7.1";
|
|
|
|
rev = "v${version}";
|
2016-06-05 13:16:50 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/haproxy_exporter";
|
|
|
|
|
2016-06-06 10:26:56 +00:00
|
|
|
src = fetchFromGitHub {
|
2016-06-05 13:16:50 +00:00
|
|
|
inherit rev;
|
2016-06-06 10:26:56 +00:00
|
|
|
owner = "prometheus";
|
|
|
|
repo = "haproxy_exporter";
|
2016-12-01 00:41:36 +00:00
|
|
|
sha256 = "1svwa1cw4yc5k8acj2r2hkall9csxjw51hgmwkmx5dq55gr9lzai";
|
2016-06-05 13:16:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "HAProxy Exporter for the Prometheus monitoring system";
|
|
|
|
homepage = https://github.com/prometheus/haproxy_exporter;
|
|
|
|
license = licenses.asl20;
|
2016-12-01 00:41:36 +00:00
|
|
|
maintainers = with maintainers; [ benley fpletz ];
|
2016-06-05 13:16:50 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|