New package: prometheus-node-exporter

This commit is contained in:
Benjamin Staffin
2015-03-23 12:07:21 -07:00
parent d11bb48234
commit 5b3254a8d1
3 changed files with 58 additions and 0 deletions
@@ -0,0 +1,32 @@
{ stdenv, lib, goPackages, fetchFromGitHub }:
with goPackages;
buildGoPackage rec {
name = "prometheus-node-exporter-0.7.1";
goPackagePath = "github.com/prometheus/node_exporter";
src = fetchFromGitHub {
owner = "prometheus";
repo = "node_exporter";
rev = "0c8bfba04df87b90e69a79b2d25a5f627ebde1bb";
sha256 = "12aj65hl9wql24rlpadd6mibf7sp8593xr1vljgyd5xdf7wjkxn9";
};
buildInputs = [
glog
go-runit
ntp
prometheus.client_golang
prometheus.client_model
protobuf
];
meta = with lib; {
description = "Prometheus exporter for machine metrics";
homepage = https://github.com/prometheus/node_exporter;
license = licenses.asl20;
maintainers = with maintainers; [ benley ];
platforms = platforms.unix;
};
}