Dashboard Variables
Video Lecture
(Pay Per View)
You can use PayPal to purchase a one time viewing of this video for $1.49 USD.
Description
In the next few lessons, we will look at how to create and use dashboard variables.
We will create the variables using the Data sources set up in all the previous lessons.
Example Variables
Variable Type |
Name |
Data source | Value/Query/Options |
|---|---|---|---|
| Interval | interval |
1m,10m,30m,1h,6h,12h,1d,7d,14d,30d |
|
| Custom | custom |
abc, def, ghi, jkl |
|
| Data source | dataSource |
Select a data source from the dropdown. | |
| Query | name |
MySQL | SELECT username AS metric FROM exampledb.simple_table ORDER BY id |
| Query | lokiName |
Loki | Query type : Label namesRegex : /^(?!__aggregated_metric__)/ |
| Query | lokiHost |
Loki | Query type : Label valuesLabel : host |
| Query | lokiJob |
Loki | Query type : Label valuesLabel : job |
| Query | promName |
Prometheus | Query type : Label namesRegex : /^(?!__name__)/ |
| Query | promJob |
Prometheus | Query type : Label valuesLabel : job |
| Query | instance |
Prometheus | Query type : Label valuesLabel : instanceLabel filters : job = $promJob |
| Query | zabbixHost |
Zabbix | Query type : HostGroup : /.*/Host : /.*/ |
| Query | CPU |
Zabbix | Query type : ItemGroup : /.*/Host : $zabbixHostItem : /CPU/ |































