You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ curl 127.0.0.1:9113/metrics
# HELP nginx_connections_accepted Accepted client connections
# TYPE nginx_connections_accepted counter
nginx_connections_accepted 2615
# HELP nginx_connections_active Active client connections
# TYPE nginx_connections_active gauge
nginx_connections_active 26
# HELP nginx_connections_handled Handled client connections
# TYPE nginx_connections_handled counter
nginx_connections_handled 2615
# HELP nginx_connections_reading Connections where NGINX is reading the request header
# TYPE nginx_connections_reading gauge
nginx_connections_reading 0
# HELP nginx_connections_waiting Idle client connections
# TYPE nginx_connections_waiting gauge
nginx_connections_waiting 11
# HELP nginx_connections_writing Connections where NGINX is writing the response back to the client
# TYPE nginx_connections_writing gauge
nginx_connections_writing 15
# HELP nginx_http_requests_total Total http requests
# TYPE nginx_http_requests_total counter
nginx_http_requests_total 4743
# HELP nginx_up Status of the last metric scrape
# TYPE nginx_up gauge
nginx_up 1
# HELP nginxexporter_build_info Exporter build information
# TYPE nginxexporter_build_info gauge
nginxexporter_build_info{arch="linux/amd64",commit="e4a6810d4f0b776f7fde37fea1d84e4c7284b72a",date="2022-09-07T21:09:51Z",dirty="false",go="go1.19",version="0.11.0"} 1
I thought with this output, that it should be working, but prometheus is giving me the error from above.
Okay, looks like it is a network misconfiguration in my docker compose. So this is not a issue of the nginx exporter. I found a "solution" with a static ip. I'll have to figure it out. Thanks anyway!
Prometheus is reporting me:
The stub status is delivered by the nginx config file:
Which is giving the output:
The exporter is started in the same docker-compose.yaml like my prometheus instance with the following config:
The exporter is giving me the output:
I thought with this output, that it should be working, but prometheus is giving me the error from above.
The target in prometheus.yml is defined as
Does somebody have an idea, what could be wrong here?
environment
prometheus version:
The text was updated successfully, but these errors were encountered: