Templating

No template variables defined

${{variable.name}} {{variable.query}} Duplicate Edit
What does templating do?

Templating allows for more interactive and dynamic dashboards. Instead of hard-coding things like server, application and sensor name in you 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.

Checkout the Templating documentation for more information.

Variable
Name
Type {{variableTypes[current.type].description}}
Template names cannot begin with '__' that's reserved for Grafanas 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
Query Options
Data source
Refresh When to update the values of this variable.
Query
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 (shows max 20)
    {{option.text}}
    {{infoText}}