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

Not all HTTP code are exposed #725

Closed
fabiencharrasse opened this issue May 29, 2024 · 2 comments
Closed

Not all HTTP code are exposed #725

fabiencharrasse opened this issue May 29, 2024 · 2 comments

Comments

@fabiencharrasse
Copy link

Describe the bug
Hello,

i'm trying to fill a grafana dashboard and it seems that only these code are exposed in promhttp_metric_handler_requests_total :

  • 200
  • 500
  • 503

image

I've triggered other code (301/404/etc) in access.log of ngninx but none appear in exporter / prometheus / grafana. Only 200/500/503

Your environment

  • Version of the Prometheus exporter: 1.2
  • Version of Docker: 26.1.3
  • Using NGINX
@lucacome
Copy link
Member

lucacome commented Jun 5, 2024

Hi @fabiencharrasse

promhttp_metric_handler_requests_total is the number of times the exporter gathered the metrics from nginx and the response code it received.

I think what you're looking for is nginxplus_server_zone_responses_codes (which requires NGINX Plus).

Let me know if that makes sense.

@fabiencharrasse
Copy link
Author

Thank you for the answer. Too bad, I will do without this functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants