2016-12-01 00:45:14 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 14:33:36 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "mysqld_exporter-${version}";
|
2017-08-27 22:02:25 +01:00
|
|
|
version = "0.10.0";
|
2016-12-01 00:45:14 +00:00
|
|
|
rev = "v${version}";
|
2016-06-05 14:33:36 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/mysqld_exporter";
|
|
|
|
|
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";
|
2017-08-27 22:02:25 +01:00
|
|
|
sha256 = "1133bgyp5vljz2qvfh0qzq8h8bkc8vci3jnmbr633bh3jpaqm2py";
|
2016-06-05 14:33:36 +01: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 18:36:05 +01:00
|
|
|
maintainers = with maintainers; [ benley globin ];
|
2016-06-05 14:33:36 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|