2016-12-01 01:45:14 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 15:33:36 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "mysqld_exporter-${version}";
|
2016-12-01 01:45:14 +01:00
|
|
|
version = "0.9.0";
|
|
|
|
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";
|
2016-12-01 01:45:14 +01:00
|
|
|
sha256 = "0ldjrbhm6n7in4lj6l78xii10mg162rsp09ymjm7y2xar9sd70vp";
|
2016-06-05 15:33:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Prometheus exporter for MySQL server metrics";
|
|
|
|
homepage = https://github.com/prometheus/mysqld_exporter;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ benley ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|