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
Before queries are sent to your data source the query is interpolated, meaning the variable is replaced with its current value. During interpolation, the variable value might be escaped in order to conform to the syntax of the query language and where it is used. For example, a variable used in a regex expression in an InfluxDB or Prometheus query will be regex escaped. Read the data source specific documentation topic for details on value escaping during interpolation.
Problem
One of our SLOs has the name
xyz-latency-10ms-99.99%
.The Grafana Dashboard linked from the
README.md
is broken for such SLOs.Specifically, it sends queries like this
because the underlying query (quoting from the dashboard JSON, hence double-escaping)
Root-Cause
https://grafana.com/docs/grafana/latest/dashboards/variables/variable-syntax/
Solution
Use the
regex
label filter=~
instead of a plain=
.I have done the work already to fix the dashboard JSON, we're using it internally.
I don't know what the process is to make a PR for the dashboard.
IMO it would be good if the JSON is versioned in this repository, instead of just being on Grafana.
The text was updated successfully, but these errors were encountered: