What are the types of variables in Grafana?
There are several types of variables in Grafana.
- You can retrieve data from a data source and use the query results as options for variables.
- Interval: A time interval can be defined to select a range of time within a variable.
- You can define a constant value and use it as an option for a variable.
- Custom: You can manually input a set of fixed values and use them as options for variables.
- You can choose a datasource and use all the tag values in that datasource as options for the variables.
- Dashboard: You can select other panels on the current dashboard and use the tags’ values as options for variables.
- You can choose the option for all tag value variables.
- Ad hoc filters: Custom filters can be applied as an option for one or more variables.
The above are common variable types in Grafana, users can choose the suitable variable type according to their own needs.