Grafana 11.5 Templates variable transferred but not recognised by other dashboard

When template variable in one dashboard (value from SQL query) is transferred over panel link to a second dashboard, the second dashboard gets the variable value, but not assigned to the same variable name, defined as Constant. This is working in grafana 11.2, but not in 11.5.

Here the template variable Gateway is defined via SQL query and has a value of 647fda0154690000

The panel link has URL pointing to a second dashboard be1yv5dp70tfkaadd with name additional:
http://localhost:3000/d/be1yv5dp70tfkaadd/additional?${Gateway:queryparam}

The url to the second dashboard contains the correct template variable Gateway value 647fda0154690000 from the original dashboard:
http://localhost:3000/d/be1yv5dp70tfkaadd/additional?var-Gateway=647fda0154690000&orgId=1&from=now-6h&to=now&timezone=browser

The template variable Gateway in the second dashboard be1yv5dp70tfkaadd is defined as Constant (as working in grafana 11.2)

However the template variable Gateway in the panel is not assigned with transferred value of 647fda0154690000 and stays empty

However, the from=now-6h&to=now&timezone=browser is transferred from original dashboard to the second dashboard (as included in the url) and is working.

Please suggest how to configure properly the template variable in the second dashboard to be assigned with the transferred value from original dashboard

There may be an issue with how Grafana 11.5 handles template variables when transferring them via URL. In Grafana 11.2, the template variable was likely recognized automatically, but this behavior seems to have changed in version 11.5.

To fix this issue in Grafana 11.5, you can try the following steps:

  1. Make sure that the template variable Gateway in the second dashboard (be1yv5dp70tfkaadd) is correctly defined as a query type variable, not as a constant.
  2. Ensure that the variable in the second dashboard accepts the incoming query parameter (var-Gateway) by using a dynamic query, instead of a constant value.
  3. Check if the URL variable format is correctly formatted for the new Grafana version. For example, double-check if the variable is being passed with the correct prefix (var-) as shown in your URL (var-Gateway=647fda0154690000).
  4. Review Grafana’s release notes for any changes in templating or URL handling between 11.2 and 11.5.

This should allow the second dashboard to properly recognize and assign the transferred Gateway variable value.

Good afternoon Domainesia,

A little bit confused by your answers, therefore let clarified:

  1. I don’t want to make a query of the variable Gateway in the second dashboard, but to transfer its value from first dashboard. If I can query the Gateway in the second dashboard, I won’t need to transfer it. Once again, this works in 11.2 Grafana and earlier versions , where the transferred variable was supposed to be defined as Constant in the second dashboard to get the transferred value from another dashboard.
  2. Please indicate the meaning of the “second dashboard to accept the incoming query parameter (var-Gateway) by using a dynamic query, instead of a constant value” - the idea is to transfer a variable value with data links from one dashboard to another dashboard, not to have a standalone query in the second dashboard
  3. URL format is correct and I included snapshots on it in the ticket when created the ticket. Please review them
  4. Reviewed the release notes of 11.5 and compared with 11.2 - no any indication about changed behavior.

I need to pass a variable value from one dashboard to another dashboard using links with variable value transferred inside - if you know the method how this should be done in 11.5 between two dashboards, please explain here.

br

Jordan

1 Like