2016-12-01 00:34:21 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 13:52:16 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "node_exporter-${version}";
|
2017-04-07 13:19:51 +00:00
|
|
|
version = "0.14.0";
|
2016-12-01 00:34:21 +00:00
|
|
|
rev = "v${version}";
|
2016-06-28 13:32:22 +00:00
|
|
|
|
2016-06-05 13:52:16 +00:00
|
|
|
goPackagePath = "github.com/prometheus/node_exporter";
|
|
|
|
|
2016-06-06 10:26:56 +00:00
|
|
|
src = fetchFromGitHub {
|
2016-06-05 13:52:16 +00:00
|
|
|
inherit rev;
|
2016-06-06 10:26:56 +00:00
|
|
|
owner = "prometheus";
|
|
|
|
repo = "node_exporter";
|
2017-04-07 13:19:51 +00:00
|
|
|
sha256 = "0rm43jjqv7crfahl973swi4warqmqnmv740cg800yvzvnlp37kl4";
|
2016-06-05 13:52:16 +00:00
|
|
|
};
|
|
|
|
|
2016-06-28 13:32:22 +00:00
|
|
|
# FIXME: megacli test fails
|
|
|
|
doCheck = false;
|
2016-06-05 13:52:16 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Prometheus exporter for machine metrics";
|
|
|
|
homepage = https://github.com/prometheus/node_exporter;
|
|
|
|
license = licenses.asl20;
|
2016-12-01 00:34:21 +00:00
|
|
|
maintainers = with maintainers; [ benley fpletz ];
|
2016-06-05 13:52:16 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|