2016-12-01 00:45:14 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 13:33:36 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mysqld_exporter";
|
2019-08-23 14:06:54 +00:00
|
|
|
version = "0.11.0";
|
2016-12-01 00:45:14 +00:00
|
|
|
rev = "v${version}";
|
2016-06-05 13:33:36 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/mysqld_exporter";
|
|
|
|
|
2016-06-06 10:26:56 +00:00
|
|
|
src = fetchFromGitHub {
|
2016-06-05 13:33:36 +00:00
|
|
|
inherit rev;
|
2016-06-06 10:26:56 +00:00
|
|
|
owner = "prometheus";
|
|
|
|
repo = "mysqld_exporter";
|
2019-08-23 14:06:54 +00:00
|
|
|
sha256 = "1684jf96dy5bs0y0689vlcw82lqw8kw2phlnp6pq1cq56fcwdxjn";
|
2016-06-05 13:33:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Prometheus exporter for MySQL server metrics";
|
|
|
|
homepage = https://github.com/prometheus/mysqld_exporter;
|
|
|
|
license = licenses.asl20;
|
2019-08-20 17:36:05 +00:00
|
|
|
maintainers = with maintainers; [ benley globin ];
|
2016-06-05 13:33:36 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|