You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
target-promql-rule already checks this, since an empty expression can not be parsed as promql. We could add this test case to the test suite, just to cover it.
Related, I just found on the awx mixin, which uses a panel reference as it's target, that the linter does not support this case. Explicitly because, the target-promql-rule attempts to parse the expr, but there isn't one.
[target-promql-rule] 'AWX': Dashboard 'AWX', panel 'License Type' invalid PromQL query '': 1:1: parse error: no expression found in input
The linter should permit these type of targets, and should validate that the referenced panel/query exists.
The text was updated successfully, but these errors were encountered: