2018-05-01 13:31:48 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 14:42:10 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "nginx_exporter-${version}";
|
2018-05-01 13:31:48 +01:00
|
|
|
version = "0.1.0";
|
2016-06-28 14:32:22 +01:00
|
|
|
|
2016-06-05 14:42:10 +01:00
|
|
|
goPackagePath = "github.com/discordianfish/nginx_exporter";
|
|
|
|
|
2018-05-01 13:31:48 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "discordianfish";
|
|
|
|
repo = "nginx_exporter";
|
|
|
|
sha256 = "1xwxnvkzslaj44r44ag24a9qfzjdxwz67hhpkdq42193zqpnlim7";
|
2016-06-05 14:42:10 +01:00
|
|
|
};
|
|
|
|
|
2016-09-10 11:04:13 +01:00
|
|
|
goDeps = ./nginx-exporter_deps.nix;
|
2016-06-05 14:42:10 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Metrics relay from nginx stats to Prometheus";
|
|
|
|
homepage = https://github.com/discordianfish/nginx_exporter;
|
2018-05-01 13:31:48 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ benley fpletz willibutz ];
|
2016-06-05 14:42:10 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|