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