2016-06-06 11:26:56 +01:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 14:33:36 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "mysqld_exporter-${version}";
|
2016-06-28 14:32:22 +01:00
|
|
|
version = "0.8.1";
|
2016-06-05 14:33:36 +01:00
|
|
|
rev = version;
|
|
|
|
|
|
|
|
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";
|
2016-06-28 14:32:22 +01:00
|
|
|
sha256 = "0pwf2vii9n9zgad1lxgw28c2743yc9c3qc03516fiwvlqc1cpddr";
|
2016-06-05 14:33:36 +01:00
|
|
|
};
|
|
|
|
|
2016-09-10 11:04:13 +01:00
|
|
|
goDeps = ./mysqld-exporter_deps.nix;
|
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;
|
|
|
|
maintainers = with maintainers; [ benley ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|