"All" value problem across dashboards in Grafana while using Prometheus as Datasource.

23 views
Skip to first unread message

Yagyansh S. Kumar

unread,
Mar 13, 2020, 4:32:37 PM3/13/20
to Prometheus Users
Hi. In one of the dashboards(Say D-1), I have created a variable called cluster and it has "All" option enabled. I have the same variable in another dashboard(Say D-2) and there are links of D-2 in D-1 at different places according to the value of cluster variable. When the value of cluster is selected as any one of the value, then the linking works fine, but when I select all and click on the link, the value that goes as all is {value1,value2,value3 ... } and D-2 takes this value for its "cluster" variable but does not display any result.
What can be done here?
Attaching the snapshots for more clarity.

D-1

D-2

Christian Hoffmann

unread,
Mar 14, 2020, 7:51:20 AM3/14/20
to Yagyansh S. Kumar, Prometheus Users
This sounds more like a Grafana support question, maybe you can get
quicker feedback if using their support channels.

I don't see an obvious problem right now. Maybe someone does if you can
post some more details about your dashboard configuration. Are the
variables named exactly the same? Might there be some escaping problem
in the outgoing URLs? Do your queries also use regexp matchers in your
target dashboard?

Kind regards,
Christian

Yagyansh S. Kumar

unread,
Mar 14, 2020, 8:44:55 AM3/14/20
to Prometheus Users
Grafana's community is dead.

Yes, the variable names are exactly the same in both the dashboards. "cluster" is the name of variable in both the dashboards. And yes, my queries do use regexp matchers in the target dashboard.
Might there be some escaping problem in the outgoing URLs? -> Um, how exactly do I conclude this?

Christian Hoffmann

unread,
Mar 14, 2020, 8:49:06 AM3/14/20
to Yagyansh S. Kumar, Prometheus Users
On 3/14/20 1:44 PM, Yagyansh S. Kumar wrote:
> Grafana's community is dead.
Hrm, sad :(

> Might there be some escaping problem in the outgoing URLs? -> Um, how
> exactly do I conclude this?
When you select "All" in the target dashboard (D-2?), the URL of that
page also changes, right?
Does this work upon reload?
If so, how does it compare to the URL generated from the first dashboard
(D-1)?

Kind regards,
Christian

Yagyansh S. Kumar

unread,
Mar 14, 2020, 11:37:53 AM3/14/20
to Prometheus Users
No, it does not work on reload too. I have to manually select the "All" option in the cluster in the target dashboard.
This problem remains if I swap the source and target dashboards.

Ideally, "All" is the value that should be passed to the target dashboard and not {value1,value2,...}. One more interesting thing it that, when I select the All option in the dashboard and print the cluster value in the same dashboard it shows as {value1, value2, ....} and this same value is passed to the target dashboard, so it should work. But still it doesn't.
Reply all
Reply to author
Forward
0 new messages