Skip to main content

Redirect Dashboards

Version

Variable Panel supports redirects since version 2.2.0.

This feature allows opening the corresponding dashboard to a variable value. It is useful, for instance, if a variable panel displays a list of some devices where every device requires a specific dashboard.

When a user selects a device in the Business Variable panel, the corresponding dashboard opens. With that, the dashboard switch is not obvious to the users. For them, it might seem they stay in one place.

Find below how to make it work.

Variable panel 2.2.0 for Grafana.

Map dashboard variables

Create two dashboard variables:

  • One to retrieve all devices.
  • The other one to hold one dashboard_id at a time following the device from the first variable.
The dashboardid variable depends on the device variable.
The dashboardid variable depends on the device variable.

Dashboards

Create device-specific dashboards with an identical variable panel on each dashboard.

Create device-specific dashboards with an identical variable panel.
Create device-specific dashboards with an identical variable panel.

Variable panel

In the Business Variable panel options, specify a value for the Dashboard->Select variable with dashboard UID.

Select variable with dashboard UID: parameter to specify a dashboard unique identifier.
Select variable with dashboard UID: parameter to specify a dashboard unique identifier.

After the above-presented configuration, the Business Variable panel switches dashboards when a user selects a device. A sleek transition makes the user experience smooth and pleasant.