nginxinc / nginx-prometheus-exporter

NGINX Prometheus Exporter for NGINX and NGINX Plus
Apache License 2.0
1.65k stars 342 forks source link

Prometheus says: invalid syntax while parsing: "Active connections:" #740

Open n0valis opened 5 months ago

n0valis commented 5 months ago

I have just installed the expoerter on my Dietpi Raspi4 and got this error message by Prometheus. I have run ./nginx-prometheus-exporter --nginx.scrape-uri=http://localhost:8080/stub_status

Full error message strconv.ParseFloat: parsing "connections:": invalid syntax while parsing: "Active connections:"

curl http://127.0.0.1:8080/stub_status Active connections: 3 server accepts handled requests 3 3 4 Reading: 0 Writing: 1 Waiting: 2

nginx -v nginx version: nginx/1.18.0

./nginx-prometheus-exporter --version nginx_exporter, version 1.2.0 (branch: HEAD, revision: d3f9f94934c8a90de58ca264ee531a7648b2bb2b) build user: goreleaser build date: 2024-05-29T14:56:38Z go version: go1.22.3 platform: linux/arm

lucacome commented 4 months ago

Hi @n0valis

Unfortunately I don't have a Raspberry Pi 4 at the moment, but I've been trying to reproduce it on other architectures and I'm not seeing that error.

I see platform: linux/arm...isn't the Pi 4 arm64?

Can you try to see if you can scrape another server? You can use https://demo.nginx.com/stub_status for testing.

github-actions[bot] commented 6 days ago

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.