RousselTMLEARNING

TP · Observa: from discovery to expertise

Lab: Build a reusable dashboard

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
Mode :

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

Use the previous lab stack (Observa and the demo Prometheus running).

Setup #

Guided steps, with their solution.

  1. 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 an instance variable (query type, multi-value, “All” option) and a pas variable (interval type).
  2. 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. 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. 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 find apiVersion, elements and layout.

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

  • ⏱ Estimated time : ≈ 35 min

Sign in to track your progress and take notes. Sign in

⭐ Rate this lesson

4.0 initial rating from the teaching team

Sign in to rate this lesson →

💬 Questions about this lesson

No questions yet: be the first to ask for help or share your configuration.

Ask a question about this lesson →

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...),...

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!