Export metrics from Nginx access log files to Prometheus
Apache License 2.0
954
stars
173
forks
source link
At a quick glance: In your exporter config there are two spaces before `\"$http_user_agent\"`, instead of one (like in the NGINX config); this will most likely cause the generated regex to not match any of the log lines, because the exporter will then also expect double spaces in your log lines. #393
At a quick glance: In your exporter config there are two spaces before `\"$http_user_agent\"`, instead of one (like in the NGINX config); this will most likely cause the generated regex to not match any of the log lines, because the exporter will then also expect double spaces in your log lines.
Hope that helps.
Originally posted by @martin-helmich in https://github.com/martin-helmich/prometheus-nginxlog-exporter/issues/309#issuecomment-1383654782