RousselTMLEARNING

Article · Observa: from discovery to expertise

Building dashboards

1. The dashboard model #

The Grafana Dashboard v2 format.

Structure #

Structure of a v2 dashboard
Variables, layout, elements and links; each panel chains queries, transformations and visualization. · Illustration: Observa documentation
{
  "apiVersion": "dashboard.grafana.app/v2beta1",
  "kind": "Dashboard",
  "metadata": { "name": "services" },
  "spec": {
    "title": "Services",
    "elements": {
      "panel-1": {
        "kind": "Panel",
        "spec": {
          "title": "Requests per second",
          "data": { "kind": "QueryGroup", "spec": { "queries": [ { "kind": "PanelQuery", "spec": {
            "query": { "kind": "DataQuery", "group": "prometheus",
                       "spec": { "expr": "sum(rate(http_server_request_duration_seconds_count[5m]))" } } } } ] } },
          "vizConfig": { "kind": "VizConfig", "group": "timeseries", "spec": { "fieldConfig": { "defaults": { "unit": "reqps" } } } }
        }
      }
    },
    "layout": { "kind": "GridLayout", "spec": { "items": [ { "kind": "GridLayoutItem",
      "spec": { "x": 0, "y": 0, "width": 12, "height": 8, "element": { "kind": "ElementReference", "name": "panel-1" } } } ] } },
    "timeSettings": { "from": "now-6h", "to": "now" }
  }
}

Import accepts a v2 resource, a v2 spec alone or a Grafana v1 (classic) JSON, converted automatically. Dashboards → Import also accepts a grafana.com ID or URL (for example 1860, Node Exporter Full): ${DS_PROMETHEUS} inputs are mapped to your sources.

Visualizations and transformations #

23 visualizations: time series, bar chart, stat, gauge, pie, table, heatmap, histogram, state timeline, XY chart, trend, candlestick, node graph, logs, traces, flame graph, text, alert list…

Transformation chain
Transformations apply after queries, in the editor Transformations tab. · Illustration: Observa documentation

27 transformations, in four families: calculations (calculated field, reduce, group by, histogram, trend), filters (by name, by query, by value, limit), formatting (organize, rename by regex, sort, convert, format, extract) and combination (join, merge, concatenate, series to rows).

Variables #

Variable types
Values are synced in the URL (var-): a shared link keeps the filters.
ItemExamples
Formats${var:csv}, ${var:regex}, ${var:json}, ${var:lucene}, ${var:sqlstring}, ${var:queryparam}
Built-in variables$__interval, $__rate_interval, $__range, $__from, $__to
Ad hoc filters in the URLvar-Filtres=env|=|prod
Best practice : Use rate(x[$__rate_interval]) rather than a fixed window: it adapts to zoom and scrape interval, and avoids empty graphs.

Collaborating #

  • Versions and restore, folders, favourites, permissions per role, group or user.
  • Inspect a panel: data (CSV export), statistics, editable JSON, query and response.
  • Snapshots (Share → Snapshot): frozen dashboard and data, /snapshot/<key> link with no account, expiry from 1 h to 30 days.
  • Shared query library from Explore, library panels, playlists, kiosk mode.
  • Global search: Ctrl+K (Cmd+K on macOS).

📄 Dashboards, Explore and Drilldown in Observa →

My progress

  • ⏱ Estimated time : ≈ 5 min

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

⭐ Rate this lesson

5.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

New Relic dashboards: building, sharing and analysing

Building useful dashboards in New Relic: NRQL widgets, chart choice, template variables, facet li...

Dashboard engineering: state visualizations, annotations, library panels and navigation

Building professional dashboards: State timeline, Status history, Node graph, annotations, librar...

Mastering variables in Grafana: make your dashboards dynamic

Learn how to use variables to create interactive, reusable dashboards. Discover the difference be...

Grafana cross-dashboard variables: share variables across dashboards

Create your Grafana variables once and reuse them everywhere: global or folder scope, enabling, a...

Observa best practices

Best practices to run Observa in production: deployment, security, sources, dashboards, alerting,...

Prometheus: visualizing your metrics (UI, Grafana and dashboards)

Visualize Prometheus data: the web interface, PromQL graphs, connecting to Grafana, RED and USE d...

Grafana best practices: dashboards, provisioning, performance and security

Grafana best practices: designing readable dashboards, variables, dashboards as code, provisionin...

Alerting in Observa: rules, notifications, built-in alerts, SLA and Sigma

Write alert rules in Prometheus format, route notifications in Alertmanager format, enable the 1,...

Discovering Observa: the self-hosted observability console

What Observa is, what it adds to Grafana OSS, its five-service architecture, its parity with Graf...

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!