2016-12-01 01:45:14 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 15:33:36 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mysqld_exporter";
|
2020-06-16 21:38:27 +02:00
|
|
|
version = "0.12.1";
|
2016-12-01 01:45:14 +01:00
|
|
|
rev = "v${version}";
|
2016-06-05 15:33:36 +02:00
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/mysqld_exporter";
|
|
|
|
|
2016-06-06 12:26:56 +02:00
|
|
|
src = fetchFromGitHub {
|
2016-06-05 15:33:36 +02:00
|
|
|
inherit rev;
|
2016-06-06 12:26:56 +02:00
|
|
|
owner = "prometheus";
|
|
|
|
repo = "mysqld_exporter";
|
2020-06-16 21:38:27 +02:00
|
|
|
sha256 = "0nzbfzx4dzs3cagdid1fqddrqimgr8x6r8gmmxglrss05c8srgs8";
|
2016-06-05 15:33:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Prometheus exporter for MySQL server metrics";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/prometheus/mysqld_exporter";
|
2016-06-05 15:33:36 +02:00
|
|
|
license = licenses.asl20;
|
2019-08-20 19:36:05 +02:00
|
|
|
maintainers = with maintainers; [ benley globin ];
|
2016-06-05 15:33:36 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|