LogQL arithmetic errors

Is there any way to catch arithmetic errors like you do to catch JSON parsing errors ?

I mean can I select or discard arithmetic errors using something like

sum(rate({app="foo", level="warn"}[1m])) / sum(rate({app="foo", level="error"}[1m]))count_over_time({foo="bar"}[1m])
| __error__ != "arithmeticErr"

with the appropriate string instead arithmeticErr.

Thanks !!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.