2019-01-11 03:11:31 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 14:52:16 +01:00
|
|
|
|
2019-01-11 03:11:31 +00:00
|
|
|
buildGoPackage rec {
|
2016-06-05 14:52:16 +01:00
|
|
|
name = "node_exporter-${version}";
|
2018-12-15 09:06:41 +00:00
|
|
|
version = "0.17.0";
|
2016-12-01 00:34:21 +00:00
|
|
|
rev = "v${version}";
|
2016-06-28 14:32:22 +01:00
|
|
|
|
2016-06-05 14:52:16 +01:00
|
|
|
goPackagePath = "github.com/prometheus/node_exporter";
|
|
|
|
|
2016-06-06 11:26:56 +01:00
|
|
|
src = fetchFromGitHub {
|
2016-06-05 14:52:16 +01:00
|
|
|
inherit rev;
|
2016-06-06 11:26:56 +01:00
|
|
|
owner = "prometheus";
|
|
|
|
repo = "node_exporter";
|
2018-12-15 09:06:41 +00:00
|
|
|
sha256 = "08g4dg6zcr95j88apsxp828jfyx4vq271w1mgkf77c46c16d2nh0";
|
2016-06-05 14:52:16 +01:00
|
|
|
};
|
|
|
|
|
2018-06-18 18:21:20 +01:00
|
|
|
# FIXME: tests fail due to read-only nix store
|
2016-06-28 14:32:22 +01:00
|
|
|
doCheck = false;
|
2016-06-05 14:52:16 +01: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 14:52:16 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|