3
0
Fork 0
forked from mirrors/nixpkgs

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

This commit is contained in:
Benjamin Staffin 2015-08-29 23:30:27 -07:00
parent fe5a2b0a39
commit c5b6f17e1c
3 changed files with 17 additions and 32 deletions

View file

@ -1,26 +0,0 @@
{ goPackages, lib, fetchFromGitHub }:
let self = goPackages.buildGoPackage rec {
name = "prometheus-collectd-exporter-${rev}";
rev = "0.1.0";
goPackagePath = "github.com/prometheus/collectd_exporter";
src = fetchFromGitHub {
owner = "prometheus";
repo = "collectd_exporter";
inherit rev;
sha256 = "165zsdn0lffb6fvxz75szmm152a6wmia5skb96k1mv59qbmn9fi1";
};
buildInputs = [ goPackages.prometheus.client_golang ];
meta = with lib; {
description = "Relay server for exporting metrics from collectd to Prometheus";
homepage = https://github.com/prometheus/alertmanager;
license = licenses.asl20;
maintainers = with maintainers; [ benley ];
platforms = platforms.unix;
};
};
in self.bin

View file

@ -9200,9 +9200,8 @@ let
prometheus = goPackages.prometheus.prometheus.bin;
prometheus-alertmanager = goPackages.prometheus.alertmanager.bin;
prometheus-cli = goPackages.prometheus.cli.bin;
prometheus-collectd-exporter = goPackages.prometheus.collectd-exporter.bin;
prometheus-collectd-exporter =
callPackage ../servers/monitoring/prometheus/collectd_exporter { };
prometheus-haproxy-exporter =
callPackage ../servers/monitoring/prometheus/haproxy_exporter { };
prometheus-mesos-exporter =

View file

@ -384,7 +384,6 @@ let
consul = buildFromGitHub rec {
rev = "v0.5.2";
date = rev;
owner = "hashicorp";
repo = "consul";
sha256 = "0p3lc1p346a5ipvkf15l94gn1ml3m7zz6bx0viark3hsv0a7iij7";
@ -1591,7 +1590,6 @@ let
logrus = buildFromGitHub rec {
rev = "v0.8.6";
date = rev; # Trick buildFromGitHub into keeping the version number.
owner = "Sirupsen";
repo = "logrus";
sha256 = "1v2qcjy6w24jgdm7kk0f8lqpa25qxzll2x6ycqwidd3pzjhrkifa";
@ -1994,9 +1992,8 @@ let
};
};
prometheus.client_golang = buildFromGitHub rec {
prometheus.client_golang = buildFromGitHub {
rev = "0.7.0";
date = rev; # Trick buildFromGitHub into keeping the version number
owner = "prometheus";
repo = "client_golang";
sha256 = "1i3g5h2ncdb8b67742kfpid7d0a1jas1pyicglbglwngfmzhpkna";
@ -2039,6 +2036,21 @@ let
buildInputs = [ protobuf ];
};
prometheus.collectd-exporter = buildFromGitHub {
rev = "0.1.0";
owner = "prometheus";
repo = "collectd_exporter";
sha256 = "165zsdn0lffb6fvxz75szmm152a6wmia5skb96k1mv59qbmn9fi1";
buildInputs = [ prometheus.client_golang ];
meta = with stdenv.lib; {
description = "Relay server for exporting metrics from collectd to Prometheus";
homepage = https://github.com/prometheus/alertmanager;
license = licenses.asl20;
maintainers = with maintainers; [ benley ];
platforms = platforms.unix;
};
};
prometheus.log = buildFromGitHub {
rev = "439e5db48fbb50ebbaf2c816030473a62f505f55";
date = "2015-05-29";