2021-01-25 11:26:54 +03:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2019-11-15 14:21:39 +03:00
|
|
|
|
2020-12-10 23:27:51 +03:00
|
|
|
buildGoModule rec {
|
2019-11-15 14:21:39 +03:00
|
|
|
pname = "nginxlog_exporter";
|
2020-12-10 23:27:51 +03:00
|
|
|
version = "1.8.0";
|
2019-11-15 14:21:39 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "martin-helmich";
|
|
|
|
repo = "prometheus-nginxlog-exporter";
|
|
|
|
rev = "v${version}";
|
2020-12-10 23:27:51 +03:00
|
|
|
sha256 = "1kqyjw5yqgjb8xa5irdhpqvwp1qhba6igpc23n2qljhbh0aybkbq";
|
2019-11-15 14:21:39 +03:00
|
|
|
};
|
|
|
|
|
2020-12-10 23:27:51 +03:00
|
|
|
vendorSha256 = "130hq19y890amxhjywg5blassl8br2p9d62aai8fj839p3p2a7zp";
|
2019-11-15 14:21:39 +03:00
|
|
|
|
2020-12-10 23:27:51 +03:00
|
|
|
subPackages = [ "." ];
|
2019-11-15 14:21:39 +03:00
|
|
|
|
2020-12-10 23:27:51 +03:00
|
|
|
runVend = true;
|
2019-11-15 14:21:39 +03:00
|
|
|
|
2020-12-13 20:26:13 +03:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) nginxlog; };
|
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2019-11-15 14:21:39 +03:00
|
|
|
description = "Export metrics from Nginx access log files to Prometheus";
|
|
|
|
homepage = "https://github.com/martin-helmich/prometheus-nginxlog-exporter";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ mmahut ];
|
|
|
|
};
|
|
|
|
}
|