Dashboard Variables
Video Lecture
Description
In the next few lectures, we will look at how the create and use dashboard variables.
We will manually recreate fully a dynamic dashboard to query our SNMP devices that we've set up in the previous lectures.
Example Variables
Name | Type | DataSource | Value/Query |
---|---|---|---|
Interval | Interval | 1m,10m,30m,1h,6h,12h,1d,7d,14d,30d |
|
Datasource | Datasource | MySQL | |
Host | Query | InfluxDB | SHOW TAG VALUES FROM interface WITH KEY = "agent_host" |
Interface | Query | InfluxDB | SHOW TAG VALUES FROM interface WITH KEY = "ifDescr" WHERE agent_host=~ /$host/ |
Custom | Custom | abc, def, ghi, jkl |
|
Names | Datasource | Loki | label_names() |
Jobs | Datasource | Loki | label_values(job) |
Units | Datasource | Loki | label_values(unit) |