mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
prometheus-haproxy-exporter: extracted from goPackages
This commit is contained in:
parent
a3cf92fdba
commit
fdebbdb889
28
pkgs/servers/monitoring/prometheus/haproxy-exporter.nix
Normal file
28
pkgs/servers/monitoring/prometheus/haproxy-exporter.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
@ -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" ]; };
|
||||||
|
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user