1 { lib, buildGoModule, fetchFromGitHub, nixosTests }:
4 pname = "nginxlog_exporter";
7 src = fetchFromGitHub {
8 owner = "martin-helmich";
9 repo = "prometheus-nginxlog-exporter";
11 sha256 = "sha256-UkXrVHHHZ9mEgsMUcHu+wI6NZFw4h3X4atDBjpBcz8E=";
14 vendorHash = "sha256-RzqfmP1d3zqageiGSr+CxSJQxAXmOKRCwj/7KO2f3EE=";
16 subPackages = [ "." ];
18 passthru.tests = { inherit (nixosTests.prometheus-exporters) nginxlog; };
21 description = "Export metrics from Nginx access log files to Prometheus";
22 mainProgram = "prometheus-nginxlog-exporter";
23 homepage = "https://github.com/martin-helmich/prometheus-nginxlog-exporter";
24 license = licenses.asl20;
25 maintainers = with maintainers; [ mmahut ];