prometheus-haproxy-exporter: extracted from goPackages

This commit is contained in:
Kamil Chmielewski 2016-06-05 15:16:50 +02:00
parent a3cf92fdba
commit fdebbdb889
4 changed files with 43 additions and 16 deletions

View file

@ -0,0 +1,28 @@
# This file was generated by go2nix.
{ stdenv, lib, goPackages, fetchgit, fetchhg, fetchbzr, fetchsvn }:
with goPackages;
buildGoPackage rec {
name = "haproxy_exporter-${version}";
version = "0.4.0";
rev = version;
goPackagePath = "github.com/prometheus/haproxy_exporter";
src = fetchgit {
inherit rev;
url = "https://github.com/prometheus/haproxy_exporter";
sha256 = "0cwls1d4hmzjkwc50mjkxjb4sa4q6yq581wlc5sg9mdvl6g91zxr";
};
goDeps = ./haproxy-exporter_deps.json;
meta = with stdenv.lib; {
description = "HAProxy Exporter for the Prometheus monitoring system";
homepage = https://github.com/prometheus/haproxy_exporter;
license = licenses.asl20;
maintainers = with maintainers; [ benley ];
platforms = platforms.unix;
};
}

View file

@ -0,0 +1,14 @@
[
{
"include": "../../libs.json",
"packages": [
"github.com/prometheus/client_golang",
"github.com/prometheus/client_model",
"github.com/matttproud/golang_protobuf_extensions",
"github.com/prometheus/procfs",
"github.com/beorn7/perks",
"github.com/golang/protobuf",
"bitbucket.org/ww/goautoneg"
]
}
]

View file

@ -10182,7 +10182,7 @@ in
prometheus-alertmanager = callPackage ../servers/monitoring/prometheus/alertmanager.nix { }; prometheus-alertmanager = callPackage ../servers/monitoring/prometheus/alertmanager.nix { };
prometheus-cli = callPackage ../servers/monitoring/prometheus/cli.nix { }; prometheus-cli = callPackage ../servers/monitoring/prometheus/cli.nix { };
prometheus-collectd-exporter = callPackage ../servers/monitoring/prometheus/collectd-exporter.nix { }; prometheus-collectd-exporter = callPackage ../servers/monitoring/prometheus/collectd-exporter.nix { };
prometheus-haproxy-exporter = goPackages.prometheus.haproxy-exporter.bin // { outputs = [ "bin" ]; }; prometheus-haproxy-exporter = callPackage ../servers/monitoring/prometheus/haproxy-exporter.nix { };
prometheus-mesos-exporter = goPackages.prometheus.mesos-exporter.bin // { outputs = [ "bin" ]; }; prometheus-mesos-exporter = goPackages.prometheus.mesos-exporter.bin // { outputs = [ "bin" ]; };
prometheus-mysqld-exporter = goPackages.prometheus.mysqld-exporter.bin // { outputs = [ "bin" ]; }; prometheus-mysqld-exporter = goPackages.prometheus.mysqld-exporter.bin // { outputs = [ "bin" ]; };
prometheus-nginx-exporter = goPackages.prometheus.nginx-exporter.bin // { outputs = [ "bin" ]; }; prometheus-nginx-exporter = goPackages.prometheus.nginx-exporter.bin // { outputs = [ "bin" ]; };

View file

@ -2588,21 +2588,6 @@ let
buildInputs = [ protobuf ]; buildInputs = [ protobuf ];
}; };
prometheus.haproxy-exporter = buildFromGitHub {
rev = "0.4.0";
owner = "prometheus";
repo = "haproxy_exporter";
sha256 = "0cwls1d4hmzjkwc50mjkxjb4sa4q6yq581wlc5sg9mdvl6g91zxr";
buildInputs = [ prometheus.client_golang ];
meta = with stdenv.lib; {
description = "HAProxy Exporter for the Prometheus monitoring system";
homepage = https://github.com/prometheus/haproxy_exporter;
license = licenses.asl20;
maintainers = with maintainers; [ benley ];
platforms = platforms.unix;
};
};
prometheus.log = buildFromGitHub { prometheus.log = buildFromGitHub {
rev = "439e5db48fbb50ebbaf2c816030473a62f505f55"; rev = "439e5db48fbb50ebbaf2c816030473a62f505f55";
version = "2015-05-29"; version = "2015-05-29";