diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/monitoring/prometheus/nginx-exporter.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/monitoring/prometheus/nginx-exporter.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/monitoring/prometheus/nginx-exporter.nix b/nixpkgs/pkgs/servers/monitoring/prometheus/nginx-exporter.nix new file mode 100644 index 000000000000..5c5042b6c7cd --- /dev/null +++ b/nixpkgs/pkgs/servers/monitoring/prometheus/nginx-exporter.nix @@ -0,0 +1,25 @@ +{ stdenv, buildGoPackage, fetchFromGitHub }: + +buildGoPackage rec { + name = "nginx_exporter-${version}"; + version = "0.1.0"; + + goPackagePath = "github.com/discordianfish/nginx_exporter"; + + src = fetchFromGitHub { + rev = "v${version}"; + owner = "discordianfish"; + repo = "nginx_exporter"; + sha256 = "1xwxnvkzslaj44r44ag24a9qfzjdxwz67hhpkdq42193zqpnlim7"; + }; + + goDeps = ./nginx-exporter_deps.nix; + + meta = with stdenv.lib; { + description = "Metrics relay from nginx stats to Prometheus"; + homepage = https://github.com/discordianfish/nginx_exporter; + license = licenses.mit; + maintainers = with maintainers; [ benley fpletz willibutz ]; + platforms = platforms.unix; + }; +} |