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

Is there a metric for http requests counted by endpoint or path? #435

Open
tomk-gloat opened this issue Sep 17, 2024 · 1 comment
Open

Comments

@tomk-gloat
Copy link

For example: I'm looking to count the number of requests going to /api/v1/something with a method GET and response code 500.

I found metrics that have method labels and response labels, but no endpoint or path endpoint.

Is there a way to configure django-promethues to export a metric with a path label?
If there isn't, what's the next best alternative?

Thanks

@marcingodlewski
Copy link

How about django_http_responses_total_by_status_view_method_total?

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