-
Notifications
You must be signed in to change notification settings - Fork 156
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
active_record_connection_pool_waiting always returns 0 #242
Comments
+1 |
I believe this metric is working correctly. I had the same issue as the OP, and suspect it wasn't working as well. But digging deeper, I realized that this metric isn't likely to get scraped by Prometheus unless the system is under sustained load. Since Prometheus only scrapes metrics once in a while (default is 10 seconds), it's possible to get a short spike in load, raise an We can see how this works in the code. This metric is set by calling the
and here's the we can see that the The above code snippet should convince us that the number of waiting threads is incremented and reported to the |
The query for it always returns 0 even though we can see lots of
even fully unfiltered by labels and in a 30d time window:
while
works.
The text was updated successfully, but these errors were encountered: