nixos: add prometheus_nginxlog_exporter module + test

This commit is contained in:
Maximilian Güntner
2020-12-21 21:23:39 +01:00
committed by Maximilian
parent ce7608d6e7
commit 65fd031277
4 changed files with 116 additions and 1 deletions
@@ -1,4 +1,4 @@
{ stdenv, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoModule rec {
pname = "nginxlog_exporter";
@@ -17,6 +17,8 @@ buildGoModule rec {
runVend = true;
passthru.tests = { inherit (nixosTests.prometheus-exporters) nginxlog; };
meta = with stdenv.lib; {
description = "Export metrics from Nginx access log files to Prometheus";
homepage = "https://github.com/martin-helmich/prometheus-nginxlog-exporter";