1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 19:15:39 +00:00
nixpkgs/pkgs/servers/monitoring/prometheus/nginx-exporter.nix
WilliButz 86c884fb5b
prometheus-nginx-exporter: 0.1.0 -> 0.4.1, use official version
Use official exporter from nginxinc.
2019-07-22 16:41:10 +02:00

28 lines
764 B
Nix

{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "nginx_exporter-${version}";
version = "0.4.1";
goPackagePath = "github.com/nginxinc/nginx-prometheus-exporter";
buildFlagsArray = [
"-ldflags=" "-X main.version=${version}"
];
src = fetchFromGitHub {
rev = "v${version}";
owner = "nginxinc";
repo = "nginx-prometheus-exporter";
sha256 = "0c5bxl9xrd4gh2w5wyrzghmbcy9k1khydzml5cm0rsyqhwsvs8m5";
};
meta = with stdenv.lib; {
description = "NGINX Prometheus Exporter for NGINX and NGINX Plus";
homepage = "https://github.com/nginxinc/nginx-prometheus-exporter";
license = licenses.asl20;
maintainers = with maintainers; [ benley fpletz willibutz ];
platforms = platforms.unix;
};
}