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