grafana/dashboard-linter

Target idx not set for target-rate-interval-rule

rgeyer opened this issue · 0 comments

When the rate-interval rule is triggered, it does not include the target idx, making it impossible to selectively exclude queries in the .lint file.

Example from the grafana/jsonnet-libs/consul-mixin.

[target-rate-interval-rule] 'Consul Overview': Dashboard 'Consul Overview', panel 'Latency' invalid PromQL query 'sum(rate(consul_http_request{job=~"$job"}[5m])) / sum(rate(consul_http_request{job=~"$job"}[5m]))': should use $__rate_interval