prometheus-mysqld-exporter: extracted from goPackages
This commit is contained in:
parent
485ad053e0
commit
f44b557476
@ -1204,5 +1204,14 @@
|
|||||||
"rev": "0c6ea494c19bedc67ebb85ce3d187ec21050e920",
|
"rev": "0c6ea494c19bedc67ebb85ce3d187ec21050e920",
|
||||||
"sha256": "18ggyjf4nyn77gkn16wg9krp4dsphgzdgcr3mdflv6mvbr482ar4"
|
"sha256": "18ggyjf4nyn77gkn16wg9krp4dsphgzdgcr3mdflv6mvbr482ar4"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"goPackagePath": "github.com/go-sql-driver/mysql",
|
||||||
|
"fetch": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/go-sql-driver/mysql",
|
||||||
|
"rev": "fb7299726d2e68745a8805b14f2ff44b5c2cfa84",
|
||||||
|
"sha256": "185af0x475hq2wmm2zdvxjyslkplf8zzqijdxa937zqxq63qiw4w"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
28
pkgs/servers/monitoring/prometheus/mysqld-exporter.nix
Normal file
28
pkgs/servers/monitoring/prometheus/mysqld-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 = "mysqld_exporter-${version}";
|
||||||
|
version = "0.1.0";
|
||||||
|
rev = version;
|
||||||
|
|
||||||
|
goPackagePath = "github.com/prometheus/mysqld_exporter";
|
||||||
|
|
||||||
|
src = fetchgit {
|
||||||
|
inherit rev;
|
||||||
|
url = "https://github.com/prometheus/mysqld_exporter";
|
||||||
|
sha256 = "10xnyxyb6saz8pq3ijp424hxy59cvm1b5c9zcbw7ddzzkh1f6jd9";
|
||||||
|
};
|
||||||
|
|
||||||
|
goDeps = ./mysqld-exporter_deps.json;
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Prometheus exporter for MySQL server metrics";
|
||||||
|
homepage = https://github.com/prometheus/mysqld_exporter;
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ benley ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
15
pkgs/servers/monitoring/prometheus/mysqld-exporter_deps.json
Normal file
15
pkgs/servers/monitoring/prometheus/mysqld-exporter_deps.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"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",
|
||||||
|
"github.com/go-sql-driver/mysql"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
@ -10184,7 +10184,7 @@ in
|
|||||||
prometheus-collectd-exporter = callPackage ../servers/monitoring/prometheus/collectd-exporter.nix { };
|
prometheus-collectd-exporter = callPackage ../servers/monitoring/prometheus/collectd-exporter.nix { };
|
||||||
prometheus-haproxy-exporter = callPackage ../servers/monitoring/prometheus/haproxy-exporter.nix { };
|
prometheus-haproxy-exporter = callPackage ../servers/monitoring/prometheus/haproxy-exporter.nix { };
|
||||||
prometheus-mesos-exporter = callPackage ../servers/monitoring/prometheus/mesos-exporter.nix { };
|
prometheus-mesos-exporter = callPackage ../servers/monitoring/prometheus/mesos-exporter.nix { };
|
||||||
prometheus-mysqld-exporter = goPackages.prometheus.mysqld-exporter.bin // { outputs = [ "bin" ]; };
|
prometheus-mysqld-exporter = callPackage ../servers/monitoring/prometheus/mysqld-exporter.nix { };
|
||||||
prometheus-nginx-exporter = goPackages.prometheus.nginx-exporter.bin // { outputs = [ "bin" ]; };
|
prometheus-nginx-exporter = goPackages.prometheus.nginx-exporter.bin // { outputs = [ "bin" ]; };
|
||||||
prometheus-node-exporter = goPackages.prometheus.node-exporter.bin // { outputs = [ "bin" ]; };
|
prometheus-node-exporter = goPackages.prometheus.node-exporter.bin // { outputs = [ "bin" ]; };
|
||||||
prometheus-pushgateway = goPackages.prometheus.pushgateway.bin // { outputs = [ "bin" ]; };
|
prometheus-pushgateway = goPackages.prometheus.pushgateway.bin // { outputs = [ "bin" ]; };
|
||||||
|
@ -2585,21 +2585,6 @@ let
|
|||||||
propagatedBuildInputs = [ logrus ];
|
propagatedBuildInputs = [ logrus ];
|
||||||
};
|
};
|
||||||
|
|
||||||
prometheus.mysqld-exporter = buildFromGitHub {
|
|
||||||
rev = "0.1.0";
|
|
||||||
owner = "prometheus";
|
|
||||||
repo = "mysqld_exporter";
|
|
||||||
sha256 = "10xnyxyb6saz8pq3ijp424hxy59cvm1b5c9zcbw7ddzzkh1f6jd9";
|
|
||||||
buildInputs = [ mysql prometheus.client_golang ];
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "Prometheus exporter for MySQL server metrics";
|
|
||||||
homepage = https://github.com/prometheus/mysqld_exporter;
|
|
||||||
license = licenses.asl20;
|
|
||||||
maintainers = with maintainers; [ benley ];
|
|
||||||
platforms = platforms.unix;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
prometheus.nginx-exporter = buildFromGitHub {
|
prometheus.nginx-exporter = buildFromGitHub {
|
||||||
rev = "2cf16441591f6b6e58a8c0439dcaf344057aea2b";
|
rev = "2cf16441591f6b6e58a8c0439dcaf344057aea2b";
|
||||||
version = "2015-06-01";
|
version = "2015-06-01";
|
||||||
|
Loading…
Reference in New Issue
Block a user