nginxinc/nginx-prometheus-exporter

nginx-prometheus-exporter startup failure

Chwei-L opened this issue · 3 comments

commond:
./nginx-prometheus-exporter -nginx.ssl-verify=false -nginx.scrape-uri=https://172.16.128.203:3000/nginx_status
output:
"022/11/04 14:14:18 Could not create Nginx Client: failed to parse response body "Active connections: 2 \nserver accepts handled requests request_time\n 60 60 240 19259\nReading: 0 Writing: 1 Waiting: 1 \n": failed to scan template metrics: newline in format does not match input"

120d36533539a283672adedaa6f1b09

8ab66b8ca43a47ded67f9e65de10f3d

Hi @Chwei-L nginx-prometheus-exporter requires metrics i.e. /stub_status for OSS and /api for Plus to be exposed at 8080, as mentioned at https://github.com/nginxinc/nginx-prometheus-exporter#prerequisites
next when you use binary, those URIs are required for -nginx.scrape-uri argument, please see https://github.com/nginxinc/nginx-prometheus-exporter#running-the-exporter-binary for exact usage.

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 10 days.

This issue was closed because it has been stalled for 10 days with no activity.