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
{{ message }}
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.
Here's a valid multi-value query for a custom variable that works in Grafana:
cluster="a"\,app="foo",cluster="b"\,app="foo"
which leads to 2 values cluster="a",app="foo" and cluster="b",app="foo".
Unfortunately grafonnet's implementation does a simple split like this (code taken from grafonnet/template.libsonnet):
query_array(query):: std.split(
if includeAll then 'All,' + query else query, ','
),
and therefore creates more than 2 values by accident.
This could either be fixed, or an options field provided as alternative to query?! The bug means that visualizations with variable repeat can't be nicely developed with grafonnet yet 😐
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Here's a valid multi-value query for a custom variable that works in Grafana:
which leads to 2 values
cluster="a",app="foo"
andcluster="b",app="foo"
.Unfortunately grafonnet's implementation does a simple split like this (code taken from
grafonnet/template.libsonnet
):and therefore creates more than 2 values by accident.
This could either be fixed, or an
options
field provided as alternative toquery
?! The bug means that visualizations with variable repeat can't be nicely developed with grafonnet yet 😐The text was updated successfully, but these errors were encountered: