The expression validator doesn't support literals and doesn't recognize several of the newer query expressions from LogQL 2.X.
So far I've had a literal expression 1 (trying to use for a dead man's switch alert) fail for example. Also had issues with absent_over_time.
I think it probably needs an update to the Loki package and a couple of modifications to the expression parsing logic. I'd be happy to contribute a fix.
The expression validator doesn't support literals and doesn't recognize several of the newer query expressions from LogQL 2.X.
So far I've had a literal expression
1(trying to use for a dead man's switch alert) fail for example. Also had issues withabsent_over_time.I think it probably needs an update to the Loki package and a couple of modifications to the expression parsing logic. I'd be happy to contribute a fix.