mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
prometheus-mesos-exporter: fold into go-packages.nix
This commit is contained in:
parent
9001ad4106
commit
52dd6ea9d9
|
@ -1,30 +0,0 @@
|
||||||
{ lib, goPackages, fetchFromGitHub }:
|
|
||||||
|
|
||||||
let self = goPackages.buildGoPackage rec {
|
|
||||||
name = "prometheus-mesos-exporter-${rev}";
|
|
||||||
rev = "0.1.0";
|
|
||||||
goPackagePath = "github.com/prometheus/mesos_exporter";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
inherit rev;
|
|
||||||
owner = "prometheus";
|
|
||||||
repo = "mesos_exporter";
|
|
||||||
sha256 = "059az73j717gd960g4jigrxnvqrjh9jw1c324xpwaafa0bf10llm";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
goPackages.mesos-stats
|
|
||||||
goPackages.prometheus.client_golang
|
|
||||||
goPackages.glog
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Export Mesos metrics to Prometheus";
|
|
||||||
homepage = https://github.com/prometheus/mesos_exporter;
|
|
||||||
license = licenses.asl20;
|
|
||||||
maintainers = with maintainers; [ benley ];
|
|
||||||
platforms = platforms.unix;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
in self.bin
|
|
|
@ -9202,9 +9202,8 @@ let
|
||||||
prometheus-cli = goPackages.prometheus.cli.bin;
|
prometheus-cli = goPackages.prometheus.cli.bin;
|
||||||
prometheus-collectd-exporter = goPackages.prometheus.collectd-exporter.bin;
|
prometheus-collectd-exporter = goPackages.prometheus.collectd-exporter.bin;
|
||||||
prometheus-haproxy-exporter = goPackages.prometheus.haproxy-exporter.bin;
|
prometheus-haproxy-exporter = goPackages.prometheus.haproxy-exporter.bin;
|
||||||
|
prometheus-mesos-exporter = goPackages.prometheus.mesos-exporter.bin;
|
||||||
|
|
||||||
prometheus-mesos-exporter =
|
|
||||||
callPackage ../servers/monitoring/prometheus/mesos_exporter { };
|
|
||||||
prometheus-mysqld-exporter =
|
prometheus-mysqld-exporter =
|
||||||
callPackage ../servers/monitoring/prometheus/mysqld_exporter { };
|
callPackage ../servers/monitoring/prometheus/mysqld_exporter { };
|
||||||
prometheus-nginx-exporter =
|
prometheus-nginx-exporter =
|
||||||
|
|
|
@ -2075,6 +2075,21 @@ let
|
||||||
propagatedBuildInputs = [ logrus ];
|
propagatedBuildInputs = [ logrus ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
prometheus.mesos-exporter = buildFromGitHub {
|
||||||
|
rev = "0.1.0";
|
||||||
|
owner = "prometheus";
|
||||||
|
repo = "mesos_exporter";
|
||||||
|
sha256 = "059az73j717gd960g4jigrxnvqrjh9jw1c324xpwaafa0bf10llm";
|
||||||
|
buildInputs = [ mesos-stats prometheus.client_golang glog ];
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Export Mesos metrics to Prometheus";
|
||||||
|
homepage = https://github.com/prometheus/mesos_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";
|
||||||
|
|
Loading…
Reference in a new issue