django-commons/django-prometheus

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

Opened this issue · 1 comments

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

How about django_http_responses_total_by_status_view_method_total?