2021-07-05 01:33:51 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2016-06-05 14:33:36 +01:00
|
|
|
|
2021-07-05 01:33:51 +01:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mysqld_exporter";
|
2021-07-05 01:33:51 +01:00
|
|
|
version = "0.13.0";
|
2016-12-01 00:45:14 +00:00
|
|
|
rev = "v${version}";
|
2016-06-05 14:33:36 +01:00
|
|
|
|
2016-06-06 11:26:56 +01:00
|
|
|
src = fetchFromGitHub {
|
2016-06-05 14:33:36 +01:00
|
|
|
inherit rev;
|
2016-06-06 11:26:56 +01:00
|
|
|
owner = "prometheus";
|
|
|
|
repo = "mysqld_exporter";
|
2021-07-05 01:33:51 +01:00
|
|
|
sha256 = "05gb6p65a0ys356qnanwc40klz1izrib37rz5yzyg2ysvamlvmys";
|
2016-06-05 14:33:36 +01:00
|
|
|
};
|
|
|
|
|
2021-07-05 01:33:51 +01:00
|
|
|
vendorSha256 = "19785rfzlx8h0h8vmg0ghd40h3p4y6ikhgf8rd2qfj5f6qxfhrgv";
|
|
|
|
|
|
|
|
# skips tests with external dependencies, e.g. on mysqld
|
|
|
|
checkFlags = [ "-short" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-06-05 14:33:36 +01:00
|
|
|
description = "Prometheus exporter for MySQL server metrics";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/prometheus/mysqld_exporter";
|
2016-06-05 14:33:36 +01:00
|
|
|
license = licenses.asl20;
|
2019-08-20 18:36:05 +01:00
|
|
|
maintainers = with maintainers; [ benley globin ];
|
2016-06-05 14:33:36 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|