What you will learn in this TP
- Create query and interval variables
- Pick the right visualization for each question
- Combine queries with a transformation
- Version, share and export a dashboard
All steps and instructions are shown. Recommended for this lab: guided
Introduction #
Context. The team wants a “Server health” dashboard usable for any machine, rather than one copy per server.
Prerequisites: Docker Compose v2, curl, jq and a browser · Estimated time: 35 min
Setup #
Guided steps, with their solution.
1. Create the dashboard and its variables
Why? Variables make a dashboard reusable; their values go into the URL.
New “Server health” dashboard in a “TP” folder. Add aninstancevariable (query type, multi-value, “All” option) and apasvariable (interval type).2. Add the panels
Why? Each question has its visualization: a trend as time series, an instant state as stat or gauge, a comparison as bars.
Create four panels: CPU (time series, % unit), used memory (gauge, thresholds 70 and 90), free disk space per mount point (bar gauge), load average (stat).3. Combine with a transformation
Why? A table gathering several queries per instance replaces several panels that are hard to compare.
Add a table panel with three instant queries (CPU, memory, load), then the Join by field (instance) and Organize fields transformations to rename columns.4. Version, share, export
Why? Versions let you roll back; the snapshot shares without giving data access; the v2 export versions the dashboard in Git.
Save twice with a message, compare versions and restore the first one. Create a snapshot (Share → Snapshot, 1 h expiry) and open the link in a private window. Export the v2 JSON and findapiVersion,elementsandlayout.
Validate your work
Check that each goal above is reached and that you get the result described in the introduction.
Difficulty level : ●●○○○ (2/5)
My progress
Sign in to track your progress and take notes. Sign in
💬 Questions about this lesson
No questions yet: be the first to ask for help or share your configuration.
Recommended Articles
Dashboards, Explore and Drilldown in Observa
Build Grafana v2 dashboards in Observa: visualizations, variables, transformations, import from g...
Grafana cross-dashboard variables: share variables across dashboards
Create your Grafana variables once and reuse them everywhere: global or folder scope, enabling, a...
Mastering variables in Grafana: make your dashboards dynamic
Learn how to use variables to create interactive, reusable dashboards. Discover the difference be...
Visualizing and automating Zabbix: dashboards, Grafana and API
Build dashboards and maps in Zabbix, use Grafana's Zabbix plugin, and automate configuration with...
Dashboard engineering: state visualizations, annotations, library panels and navigation
Building professional dashboards: State timeline, Status history, Node graph, annotations, librar...
Visualizing in Kibana: Lens, dashboards and saved objects
Build visualizations with Lens, assemble interactive dashboards (filters, controls, links), and m...
Prometheus: visualizing your metrics (UI, Grafana and dashboards)
Visualize Prometheus data: the web interface, PromQL graphs, connecting to Grafana, RED and USE d...
Grafana dashboards with the Zabbix data source
Display Zabbix in Grafana: install the plugin, create a user and an API token, configure and prov...
Creating dashboards in Zabbix: dashboards, widgets and pages
Build useful Zabbix dashboards: pages, widgets (Graph, Problems, Top hosts, Honeycomb, Gauge...),...