Skip to content

Dashboard Variables

Video Lecture

Dashboard Variables Dashboard Variables

 (Pay Per View)

You can use PayPal to purchase a one time viewing of this video for $1.49 USD.

Pay Per View Terms

  • One viewing session of this video will cost the equivalent of $1.49 USD in your currency.
  • After successful purchase, the video will automatically start playing.
  • You can pause, replay and go fullscreen as many times as needed in one single session for up to an hour.
  • Do not refresh the browser since it will invalidate the session.
  • If you want longer-term access to all videos, consider purchasing full access through Udemy or YouTube Memberships instead.
  • This Pay Per View option does not permit downloading this video for later viewing or sharing.
  • All videos are Copyright © 2019-2025 Sean Bradley, all rights reserved.

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 names
Regex : /^(?!__aggregated_metric__)/
Query lokiHost Loki Query type : Label values
Label : host
Query lokiJob Loki Query type : Label values
Label : job
Query promName Prometheus Query type : Label names
Regex : /^(?!__name__)/
Query promJob Prometheus Query type : Label values
Label : job
Query instance Prometheus Query type : Label values
Label : instance
Label filters : job = $promJob
Query zabbixHost Zabbix Query type : Host
Group : /.*/
Host : /.*/
Query CPU Zabbix Query type : Item
Group : /.*/
Host : $zabbixHost
Item : /CPU/