2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2019-11-15 12:21:39 +01:00
|
|
|
|
2020-12-10 21:27:51 +01:00
|
|
|
buildGoModule rec {
|
2019-11-15 12:21:39 +01:00
|
|
|
pname = "nginxlog_exporter";
|
2021-05-11 07:01:36 +02:00
|
|
|
version = "1.9.0";
|
2019-11-15 12:21:39 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "martin-helmich";
|
|
|
|
repo = "prometheus-nginxlog-exporter";
|
|
|
|
rev = "v${version}";
|
2021-05-11 07:01:36 +02:00
|
|
|
sha256 = "0kcwhaf9k7c1xsz78064qz5zb4x3xgi1ifi49qkwiaqrzx2xy26p";
|
2019-11-15 12:21:39 +01:00
|
|
|
};
|
|
|
|
|
2021-05-11 07:01:36 +02:00
|
|
|
vendorSha256 = "05hisrhlklbs26cgblzfjh6mhaih5asvbll54jngnmwylwjd1mmc";
|
2019-11-15 12:21:39 +01:00
|
|
|
|
2020-12-10 21:27:51 +01:00
|
|
|
subPackages = [ "." ];
|
2019-11-15 12:21:39 +01:00
|
|
|
|
2020-12-10 21:27:51 +01:00
|
|
|
runVend = true;
|
2019-11-15 12:21:39 +01:00
|
|
|
|
2020-12-13 18:26:13 +01:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) nginxlog; };
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-11-15 12:21:39 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|