Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With Prometheus,i got a metric named "nginx_connections_accepted_total",not "nginx_connections_accepted" #701

Closed
T-L-T opened this issue Apr 30, 2024 · 4 comments
Labels
community Issues or PRs opened by an external contributor

Comments

@T-L-T
Copy link

T-L-T commented Apr 30, 2024

Describe the bug
Hello,i am considering is it a bug?
With Prometheus,i got a metric named "nginx_connections_accepted_total",not "nginx_connections_accepted".
In source code,example dashboard(grafana/dashboard.json),README.md ,it is "nginx_connections_accepted".

To reproduce
When i run "curl http://127.0.0.1:9113/metrics",i can get expect result.

# HELP nginx_connections_accepted Accepted client connections
# TYPE nginx_connections_accepted counter
nginx_connections_accepted 23
# HELP nginx_connections_active Active client connections
# TYPE nginx_connections_active gauge
nginx_connections_active 1
# HELP nginx_connections_handled Handled client connections
# TYPE nginx_connections_handled counter
nginx_connections_handled 23
# 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 0
# HELP nginx_connections_writing Connections where NGINX is writing the response back to the client

And when i query other metrics,like nginx_connections_handled_total with PromSQL in Grafana ,i can get the right result.

So i think i deployed in right way.

But when i query metric nginx_connections_accepted with PromSQL in Grafana,i can only find a metric named "nginx_connections_accepted_total",instead of "nginx_connections_accepted".

Expected behavior

When i query with PromSQL in Grafana,the metric name is "nginx_connections_accepted".

Your environment

  • nginx-prometheus-exporter v1.1.0
  • nginx v1.23.0
  • Grafana v10.0.0
  • prometheus v2.45.0

Additional context
Add any other context about the problem here. Any log files you want to share.

Copy link

nginx-bot bot commented Apr 30, 2024

Hi @T-L-T! Welcome to the project! 🎉

Thanks for opening this issue!
Be sure to check out our Contributing Guidelines and the Issue Lifecycle while you wait for someone on the team to take a look at this.

@nginx-bot nginx-bot bot added the community Issues or PRs opened by an external contributor label Apr 30, 2024
@shaun-nx shaun-nx added in review Gathering information and removed in review Gathering information labels May 22, 2024
@lucacome
Copy link
Member

lucacome commented Jun 6, 2024

Hi @T-L-T

Do you have a screenshot? I can't reproduce it, I see nginx_connections_accepted in both Graphana and Prometheus.

@T-L-T
Copy link
Author

T-L-T commented Jun 11, 2024

Hi @T-L-T

Do you have a screenshot? I can't reproduce it, I see nginx_connections_accepted in both Graphana and Prometheus.

Thank you for your attention. This is my screenshot.
WechatIMG499

@T-L-T
Copy link
Author

T-L-T commented Jun 14, 2024

Hi @T-L-T

Do you have a screenshot? I can't reproduce it, I see nginx_connections_accepted in both Graphana and Prometheus.

Thank you for your attention again,I think i find the reason for that. The "collector" handle that,like "_total","_sum" and so on.

@T-L-T T-L-T closed this as completed Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Issues or PRs opened by an external contributor
Projects
None yet
Development

No branches or pull requests

3 participants