6.02 Templating with variable - MartinWong06/grafana GitHub Wiki

A template is any query that contains a variable.

How to define variables in Grafana Templating?

Define a variable in dashboard setting

Click on variable, click Add New Variable

Variable configuration

images/Chapter_6/6.2_001_variable.png

Query options

images/Chapter_6/6.2_001_variable_query_options.png

How to use the variable?

  • Multiple panels
  • PromQL
  • Dashboard Title
  • Row