Open gtk-grafana opened 23 hours ago
So this might be a bit more work then I was hoping in the frontend. We'll need to store the fieldType (e.g. bytes, float, duration, etc) in the JSON encoded value for the ad-hoc filter (like we currently store the parser) to only strip out white-space when the field is of type duration or bytes.
We're going to push on a Loki side change https://github.com/grafana/loki/issues/15052 instead of needing to encode the field type with every field value for now.
Sometimes we get responses like this:
And other times like this:
Currently the spaces before the unit is making it into the query, which breaks the query as that is not valid logQL. Please strip out white-spaces before the units and bring up to Loki folks to make sure this isn't a bug Loki side.