Manage and inspect variables
The variables page lets you add variables and manage existing variables. It also allows you to inspect variables and identify whether a variable is being referenced (or used) in other variables or dashboard.
Manage variables
You can take the following actions on the variables page:
-
Move: You can move a variable up or down the list using drag and drop.
-
Clone: To clone a variable, click the clone icon from the set of icons on the right. This creates a copy of the variable with the name of the original variable prefixed with
copy_of_
. -
Delete: To delete a variable, click the trash icon from the set of icons on the right.
Inspect variables
The variables page lets you easily identify whether a variable is being referenced (or used) in other variables or dashboard. In addition, you can also add and manage variables on this page.
NOTE: This feature is available in Grafana 7.4 and later versions.
image::variables-list-7-4.png
Any variable that is referenced or used has a green check mark next to it, while unreferenced variables have a orange caution icon next to them.
image::variable-not-referenced-7-4.png
In addition, all referenced variables have a dependency icon next to the green check mark. You can click on the icon to view the dependency map. The dependency map can be moved. You can zoom in out with mouse wheel or track pad equivalent.
image::dependancy-map-7-4.png