Constant variable passed in Link URL


I don’t know if what I found is just a misuse or a bug. Could you help me ?

What Grafana version and what operating system are you using?
Grafana 8.0.2

What are you trying to achieve?**
Using Links, I want to navigate through Dashboard and keep my query variables but NOT my constant variables.

How are you trying to achieve it?
Let’s say I have 2 dashboards “Dash1” and “Dash2”. Each have a constant variable “Type” that values respectively “Type1” and “Type2”.

In my dashboard “Dash1”, I have a link to “Dash2” with option “Include current template variable values” activated. It’s because I want to keep my other non-constant variable when surfing from “Dash1” to “Dash2”.
This leads to a URL with all my variables inside:

What happened?
When loading “Dash2” assigns “Type1” to variable “Type”.

What did you expect to happen?
Type is a constant variable. I would expect it is not changed by URL and stays at its assigned value “Type2”

What I’m looking for
Is there a way to have a truely constant variable that cannot be changed by URL ?

I didn’t notices this until Grafana 8. But now, I want to maximize the use of the library panel and the only difference between panels in “Dash1” and “Dash2” is the Type. Using a variable with same name allows me to have a unique panel for all my dashboards.

I am sorry, it’s a long message. I hope anyone will be able to help me.
A very big thanks to all Grafana Team that makes a wonderful job :1st_place_medal: !

This topic was automatically closed after 365 days. New replies are no longer allowed.