Closed trinity-1686a closed 2 months ago
Thanks! The issue looks like a duplicate of #77
The query itself is OK and variable interpolation will be handled normally (the datasource API method for interpolation is called during a query call). This should display results.
The gist of the issue is that parser used for linting currently doesn't handle Grafana's query templating language, which leads to the displayed error state. I have ongoing work to fix that, but parsing mixed languages isn't quite straightforward.
maybe it would work, though I can't check, the Run query
button is actually disabled for invalid queries
Oooh ! Yup, definitely overlooked this detail. Will fix !
when viewing context around a line, we get the following interface:
As shown on the picture, the query is prefilled, but variables aren't substituted, resulting in an invalid query. It would be handy to perform the substitution when opening the interface