-
Notifications
You must be signed in to change notification settings - Fork 535
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
Inconsistent rate() Function Output between Prometheus and Mimir on Histogram Data #9767
Comments
Hello, does this always happen to you on the last sample? Note that Mimir doesn't offer isolation, because of its distributed fashion. When series for different buckets of an histogram are written, there's a moment when some of them are written but others still aren't. If the query is executed at that specific moment, the histogram_quantile function may only see higher buckets but not the lower ones, thus increasing the p99 value. There's no easy fix for this on classic histograms, and we are not planning to fix it because this issue doesn't exist in native histograms which are becoming stable now with the release of Prometheus 3.0. Please, reopen the issue if you see this happening consistently in samples that were already written "a while ago". |
In this case, I would recommend you digging down to a single histogram series and check what's going on with the buckets. I would check one of the pods that differs, and query an instant query of that in grafana as: |
You need to switch |
You're still rendering the histogram_quantile, that's why you can't render time series from an instant query, please see my suggestion above:
Something like this: |
Describe the bug
We have observed unexpected behavior when using the
rate()
function on histogram metrics in Mimir compared to Prometheus. Specifically, we sporadically see a significant spike in the Mimir output that is not present in Prometheus.To Reproduce
Expected behavior
Expected to see the same results in Prometheus and Mimir.
Environment
Additional Context
The text was updated successfully, but these errors were encountered: