2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2019-11-15 11:21:39 +00:00
|
|
|
|
2020-12-10 20:27:51 +00:00
|
|
|
buildGoModule rec {
|
2019-11-15 11:21:39 +00:00
|
|
|
pname = "nginxlog_exporter";
|
2023-07-18 01:56:27 +00:00
|
|
|
version = "1.11.0";
|
2019-11-15 11:21:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "martin-helmich";
|
|
|
|
repo = "prometheus-nginxlog-exporter";
|
|
|
|
rev = "v${version}";
|
2023-07-18 01:56:27 +00:00
|
|
|
sha256 = "sha256-UkXrVHHHZ9mEgsMUcHu+wI6NZFw4h3X4atDBjpBcz8E=";
|
2019-11-15 11:21:39 +00:00
|
|
|
};
|
|
|
|
|
2023-07-18 01:56:27 +00:00
|
|
|
vendorHash = "sha256-RzqfmP1d3zqageiGSr+CxSJQxAXmOKRCwj/7KO2f3EE=";
|
2019-11-15 11:21:39 +00:00
|
|
|
|
2020-12-10 20:27:51 +00:00
|
|
|
subPackages = [ "." ];
|
2019-11-15 11:21:39 +00:00
|
|
|
|
2020-12-13 17:26:13 +00:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) nginxlog; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-11-15 11:21:39 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|