summary refs log tree commit diff
path: root/pkgs/servers/monitoring/prometheus/nginx-exporter.nix
blob: 5c5042b6c7cd8cbc1907bda2519845806dd713ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
  };
}