2016-06-06 11:26:56 +01:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 14:16:50 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "haproxy_exporter-${version}";
|
|
|
|
version = "0.4.0";
|
|
|
|
rev = version;
|
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/haproxy_exporter";
|
|
|
|
|
2016-06-06 11:26:56 +01:00
|
|
|
src = fetchFromGitHub {
|
2016-06-05 14:16:50 +01:00
|
|
|
inherit rev;
|
2016-06-06 11:26:56 +01:00
|
|
|
owner = "prometheus";
|
|
|
|
repo = "haproxy_exporter";
|
2016-06-05 14:16:50 +01:00
|
|
|
sha256 = "0cwls1d4hmzjkwc50mjkxjb4sa4q6yq581wlc5sg9mdvl6g91zxr";
|
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./haproxy-exporter_deps.json;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "HAProxy Exporter for the Prometheus monitoring system";
|
|
|
|
homepage = https://github.com/prometheus/haproxy_exporter;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ benley ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|