prometheus-node-exporter: fold into go-packages.nix

This commit is contained in:
Benjamin Staffin 2015-08-30 00:16:00 -07:00
parent 6122488297
commit 4c95e49593
3 changed files with 25 additions and 37 deletions

View File

@ -1,35 +0,0 @@
{ lib, goPackages, fetchFromGitHub }:
with goPackages;
let self = buildGoPackage rec {
name = "prometheus-node-exporter-${rev}";
rev = "0.10.0";
goPackagePath = "github.com/prometheus/node_exporter";
src = fetchFromGitHub {
owner = "prometheus";
repo = "node_exporter";
inherit rev;
sha256 = "0dmczav52v9vi0kxl8gd2s7x7c94g0vzazhyvlq1h3729is2nf0p";
};
buildInputs = [
go-runit
ntp
prometheus.client_golang
prometheus.client_model
prometheus.log
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;
};
};
in self.bin

View File

@ -9205,9 +9205,8 @@ let
prometheus-mesos-exporter = goPackages.prometheus.mesos-exporter.bin; prometheus-mesos-exporter = goPackages.prometheus.mesos-exporter.bin;
prometheus-mysqld-exporter = goPackages.prometheus.mysqld-exporter.bin; prometheus-mysqld-exporter = goPackages.prometheus.mysqld-exporter.bin;
prometheus-nginx-exporter = goPackages.prometheus.nginx-exporter.bin; prometheus-nginx-exporter = goPackages.prometheus.nginx-exporter.bin;
prometheus-node-exporter = goPackages.prometheus.node-exporter.bin;
prometheus-node-exporter =
callPackage ../servers/monitoring/prometheus/node_exporter { };
prometheus-pushgateway = prometheus-pushgateway =
callPackage ../servers/monitoring/prometheus/pushgateway { }; callPackage ../servers/monitoring/prometheus/pushgateway { };
prometheus-statsd-bridge = prometheus-statsd-bridge =

View File

@ -2121,6 +2121,30 @@ let
}; };
}; };
prometheus.node-exporter = buildFromGitHub {
rev = "0.10.0";
owner = "prometheus";
repo = "node_exporter";
sha256 = "0dmczav52v9vi0kxl8gd2s7x7c94g0vzazhyvlq1h3729is2nf0p";
buildInputs = [
go-runit
ntp
prometheus.client_golang
prometheus.client_model
prometheus.log
protobuf
];
meta = with stdenv.lib; {
description = "Prometheus exporter for machine metrics";
homepage = https://github.com/prometheus/node_exporter;
license = licenses.asl20;
maintainers = with maintainers; [ benley ];
platforms = platforms.unix;
};
};
prometheus.procfs = buildFromGitHub { prometheus.procfs = buildFromGitHub {
rev = "c91d8eefde16bd047416409eb56353ea84a186e4"; rev = "c91d8eefde16bd047416409eb56353ea84a186e4";
date = "2015-06-16"; date = "2015-06-16";