-
Notifications
You must be signed in to change notification settings - Fork 87
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
Incorrect http_requests_total with multiple Middleware #295
Comments
@rajeshdhanda I'm experiencing the same issue. It seems that the issue is known. Check out the comment in main.py:
If I'm reading this right, then it looks like each middleware will call to add each metric. Adding the first instance of the metrics should be fine. The subsequent calls from each middleware should raise an exception, but I think that exception is not happening in our case. Will continue to dig. |
Hi folks, does someone have solution for this? I'm observing the same issue |
Hey guys @Fulmo @rajeshdhanda @IceRiverDev have you been using gunicorn on your applications ? |
Below is 2 different app along with code and metrics in Grafana.
APP 1
Metrics :
increase(http_requests_total{job="app-1-api"}[1m])
APP 2
Metrics :
increase(http_requests_total{job="app-2-api"}[1m])
Upon observation, it's noted that the http_requests_total metric consistently increases in App 2, whereas the traffic distribution to both apps seems similar in reality. Appreciate any insights or suggestions on what might be causing this discrepancy or if there's any missing configuration.
The text was updated successfully, but these errors were encountered: