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