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

Exclude metrics by view (or other criteria) #408

Open
nathanieltalbot opened this issue Jun 8, 2023 · 2 comments
Open

Exclude metrics by view (or other criteria) #408

nathanieltalbot opened this issue Jun 8, 2023 · 2 comments

Comments

@nathanieltalbot
Copy link

Hi all, is there any way to exclude request/response metrics by a certain view or by a certain criteria? The use case is that I'm seeing a lot of the django_http_responses_total_by_status_view_method_total metric with prometheus-django-metrics as the view (so, any queries to the metrics endpoint). Is there a clean way to exclude metrics about this route? Just looking to reduce the amount of metrics we expose by default.

@raayu83
Copy link

raayu83 commented Nov 30, 2023

Would also be interested in this to do the same and also exclude liveness and readiness probes.

@janw
Copy link

janw commented Jan 10, 2024

Same here, and I'd be happy to contribute this feature if it's considered a valid addition.

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

3 participants