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

exception metrics never trigger #433

Open
anarcat opened this issue Sep 12, 2024 · 0 comments
Open

exception metrics never trigger #433

anarcat opened this issue Sep 12, 2024 · 0 comments

Comments

@anarcat
Copy link

anarcat commented Sep 12, 2024

In our monitoring, we're trying to alert when django raises (too many) exceptions. But it seems the metric seemingly designed for this (django_http_requests_exceptions_total) never actually increments here, even though we can raise exceptions.

It seems the process_exception method in PrometheusAfterMiddleware should handle that automatically, but doesn't.

We're running Django 4.2.15 on Debian 12 bookworm ("stable"). Our downstream bug report is https://gitlab.torproject.org/tpo/web/donate-neo/-/issues/115

Thanks!

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

1 participant