-
Notifications
You must be signed in to change notification settings - Fork 172
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
NaN in SLO dashboard #531
Comments
So root issue is probably that with zero traffic I'd recommend you try to fix the underlying total query to never evaluate to 0, possibly with Reason why this needs to be handled in the slo query is that how these edge cases should be handled depends on the rest of the query. Still you could argue for derived metrics like |
Thank you! But I did a try, it did not work.. I do login to the Prometheus UI to check the recording rule..
Here is my updated Sloth Spec, I update the "total_query" to add >0 or vector(1)
|
Your updated Sloth spec looks correct, though I don't have access to a prometheus server to test the query at the moment. Dashboard might still show You can read about |
Hello Guys,
We just integrated Sloth SLO Spec to our systems. We used two SLO dashboard from here https://sloth.dev/introduction/dashboards/
Run some traffic and Observed the SLO dashboard, see this "NaN" issue, this is why I am here.. it is Year 2024.. By reading some dev thread. Do we have better solution instead of doing >0 or vector(1) things to avoid NaNs in the first place. But how to fix this PromQL query? SLI window is 5 min
Thanks,
Jennie
The text was updated successfully, but these errors were encountered: