Variables > New > Edit

There are no variables added yet
Add variable
What do variables do?

Variables enable more interactive and dynamic dashboards. Instead of hard-coding things like server or sensor names in your metric queries you can use variables in their place. Variables are shown as dropdown select boxes at the top of the dashboard. These dropdowns make it easy to change the data being displayed in your dashboard. Check out the Templating documentation for more information.

Variable Definition
${{variable.name}} {{variable.definition ? variable.definition : variable.query}} Duplicate
General
Name
Type {{variableTypes[current.type].description}}
Template names cannot begin with '__', that's reserved for Grafana's global variables
Label
Hide
Interval Options
Values
Step count How many times should the current time range be divided to calculate the value
Min interval The calculated value will not go below this threshold
Custom Options
Values separated by comma
Constant options
Value
Text options
Default value
Query Options
Data source
Refresh When to update the values of this variable.
Regex Optional, if you want to extract part of a series name or metric node segment.
Sort How to sort the values of this variable.
Data source options
Options
Data source
Selection Options
Custom all value
Value groups/tags (Experimental feature)
Tags query
  • Tag values query
  • Preview of values
    {{option.text}}
    {{infoText}}