diff options
author | Benjamin Staffin <ben@folsomlabs.com> | 2015-06-01 12:28:21 -0700 |
---|---|---|
committer | Benjamin Staffin <ben@folsomlabs.com> | 2015-06-01 15:32:51 -0700 |
commit | 3309a15be9d28a546184f1ffdc81bde2b6e2d8fd (patch) | |
tree | dc203907ebe2218832686d3e96b7bf87a1e3f612 /pkgs/servers | |
parent | 314c6847aa8d3b2335889c7ef3b26adb6c933375 (diff) | |
download | nixlib-3309a15be9d28a546184f1ffdc81bde2b6e2d8fd.tar nixlib-3309a15be9d28a546184f1ffdc81bde2b6e2d8fd.tar.gz nixlib-3309a15be9d28a546184f1ffdc81bde2b6e2d8fd.tar.bz2 nixlib-3309a15be9d28a546184f1ffdc81bde2b6e2d8fd.tar.lz nixlib-3309a15be9d28a546184f1ffdc81bde2b6e2d8fd.tar.xz nixlib-3309a15be9d28a546184f1ffdc81bde2b6e2d8fd.tar.zst nixlib-3309a15be9d28a546184f1ffdc81bde2b6e2d8fd.zip |
New package: prometheus-nginx-exporter
Adding to the growing collection of prometheus tools...
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/monitoring/prometheus/nginx_exporter/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/servers/monitoring/prometheus/nginx_exporter/default.nix b/pkgs/servers/monitoring/prometheus/nginx_exporter/default.nix new file mode 100644 index 000000000000..b45b2784042e --- /dev/null +++ b/pkgs/servers/monitoring/prometheus/nginx_exporter/default.nix @@ -0,0 +1,27 @@ +{ lib, goPackages, fetchFromGitHub }: + +goPackages.buildGoPackage rec { + name = "prometheus-nginx-exporter-${version}"; + version = "git-2015-06-01"; + goPackagePath = "github.com/discordianfish/nginx_exporter"; + + src = fetchFromGitHub { + owner = "discordianfish"; + repo = "nginx_exporter"; + rev = "2cf16441591f6b6e58a8c0439dcaf344057aea2b"; + sha256 = "0p9j0bbr2lr734980x2p8d67lcify21glwc5k3i3j4ri4vadpxvc"; + }; + + buildInputs = [ + goPackages.prometheus.client_golang + goPackages.prometheus.log + ]; + + meta = with lib; { + description = "Metrics relay from nginx stats to Prometheus"; + homepage = https://github.com/discordianfish/nginx_exporter; + license = licenses.asl20; + maintainers = with maintainers; [ benley ]; + platforms = platforms.unix; + }; +} |