2016-06-06 10:26:56 +00:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 12:59:43 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "collectd-exporter-${version}";
|
2016-07-18 18:25:35 +00:00
|
|
|
version = "0.3.1";
|
2016-06-05 12:59:43 +00:00
|
|
|
rev = version;
|
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/collectd_exporter";
|
|
|
|
|
2016-06-06 10:26:56 +00:00
|
|
|
src= fetchFromGitHub {
|
2016-06-05 12:59:43 +00:00
|
|
|
inherit rev;
|
2016-06-06 10:26:56 +00:00
|
|
|
owner = "prometheus";
|
|
|
|
repo = "collectd_exporter";
|
2016-07-18 18:25:35 +00:00
|
|
|
sha256 = "1p0kb7c8g0r0sp5a6xrx8vnwbw14hhwlqzk4n2xx2y8pvnbivajz";
|
2016-06-05 12:59:43 +00:00
|
|
|
};
|
|
|
|
|
2016-09-10 10:04:13 +00:00
|
|
|
goDeps = ./collectd-exporter_deps.nix;
|
2016-06-05 12:59:43 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Relay server for exporting metrics from collectd to Prometheus";
|
2016-07-18 18:25:35 +00:00
|
|
|
homepage = https://github.com/prometheus/collectd_exporter;
|
2016-06-05 12:59:43 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ benley ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|