Pcornel
Browse topics
Options
Recent
Favorites
Observability · Technical reference

Grafana

Direct answer

Grafana visualises data from many sources (Prometheus, Loki, Tempo, Elasticsearch, SQL) in dashboards, and can also run alert rules.

When to use this

Use it for dashboards and exploring telemetry.

First 30 seconds

1. Data source health: Connections → Data sources → Test, or curl -s http://grafana:3000/api/health.

2. Query in Explore.

3. Panel uses the right data source and time range.

4. Variables resolve.

5. Dashboard JSON in version control.

Operational verification

data source → query → panel → dashboard → user

Evidence · next step

Failures include stale/wrong variables, mixed data sources, transformations hiding null/error series, time-range mismatch, unit/threshold mistakes and dashboard provisioning overwriting manual edits. Preserve the first divergent observation and repeat the same bounded verification after remediation.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
What not to infer

Failures include stale/wrong variables, mixed data sources, transformations hiding null/error series, time-range mismatch, unit/threshold mistakes and dashboard provisioning overwriting manual edits.

Platform / version applicability
OpenTelemetry / Prometheus / Grafana / common metrics-log-trace pipelines
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformOpenTelemetry / Prometheus / Grafana / common metrics-log-trace pipelines · Observability owns Grafana dashboards/query presentation. The underlying backend owns stored telemetry; source Domains own system semantics.
Scope / prerequisiteUse it for dashboards and exploring telemetry.
What next?3 suggested next steps
Child topics (this level)2
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification workflow Verify boundary

Inspect panel query and data source directly, expand variables, disable/understand transformations and reproduce the query in the source backend. Check dashboard time range/time zone and compare alert rule queries with panel queries when they disagree.

Step 2 Failure signatures and limits Narrow the fault

Failures include stale/wrong variables, mixed data sources, transformations hiding null/error series, time-range mismatch, unit/threshold mistakes and dashboard provisioning overwriting manual edits.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

test · 1
Drill down

Subtopics

Go one level deeper into this subject.

Key points

Provision dashboards and data sources as code. Use variables for environment/service. Explore view is the fastest way to test a query.

Key checks
  • curl -s http://grafana:3000/api/health — first check for this topic
  • curl -s localhost:9090/-/ready — Prometheus ready
  • curl -s 'localhost:9090/api/v1/query?query=up' — scrape targets up/down
  • promtool check config prometheus.yml — config valid
ReferenceWhat it is1 section · depth on demand

Operating model

Grafana is a visualization/query and alerting surface over external data sources. A panel result depends on the selected source, query, variable values, transformations, time range and dashboard version. A visually green panel is therefore presentation of queried telemetry, not independent truth.

ReferenceHow it works1 section · depth on demand

In depth

Grafana is the most widely used open-source visualisation platform for observability. It queries many data sources — Prometheus, Loki, Tempo, Elasticsearch, InfluxDB, SQL databases, cloud monitoring — and presents them in dashboards, with alerting and correlation features.

Dashboard practices:

PracticeBenefit
Start with overview → drill-down structureFast orientation
Use variables (site, host, service)One dashboard for many systems
Show units, thresholds and SLO linesReadable at a glance
Annotate deployments/changesCorrelate with events
Link panels to logs and tracesFaster investigation
Dashboards as code (JSON in Git, provisioning, Grafonnet/Terraform)Reviewable, reproducible

Avoid dashboard sprawl: a few well-maintained dashboards per service beat hundreds of abandoned ones. Restrict editing rights and use folders and permissions for teams.

ReferenceImportant terms & boundaries1 section · depth on demand

Scope map

  • Data sources
  • Dashboards
  • Panels and variables
  • Transformations
  • Alerting
  • Dashboard troubleshooting
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical examples

Configuration & expected output

Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.

Configuration example

Grafana Grafana 10 or laterProvision a Prometheus data source from a file.

Assumptions: File provisioning directory is /etc/grafana/provisioning.

# /etc/grafana/provisioning/datasources/prometheus.yaml
apiVersion: 1
datasources:
- name: Prometheus
  type: prometheus
  access: proxy
  url: http://prometheus:9090
  isDefault: true
  jsonData:
    timeInterval: 30s

Expected output

Grafana Grafana 10 or latercurl -s -u admin http://grafana:3000/api/datasources/name/Prometheus | jq '{name,type,url,isDefault}'

Expected state: The data source exists with the expected URL and is the default.

{
  "name": "Prometheus",
  "type": "prometheus",
  "url": "http://prometheus:9090",
  "isDefault": true
}
A data source that saves but returns no data usually means the URL is wrong from the Grafana server's point of view, not the browser's. Illustrative authored output: field layout matches the tool, values will differ in your environment.
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-29 · vendor docOpenTelemetry / Prometheus / Grafana ecosystem Grafana current documentation

Documentation verification: confirms the upstream model used by the Topic. It does not assert local production behavior.

Basis: https://grafana.com/docs/grafana/latest/ · confidence 92%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
grafanaGrafana dashboardsGrafana data sourceGrafana troubleshooting
Embedded reference data

Quick lookup tables

Grafana verification boundary matrix

A compact lookup separating intent, owning component state, effective state and consumer-visible outcome for Grafana.

BoundaryInspectHealthy interpretationDo not infer
IntentData sourcesIntended object/scope is explicit and versioned where relevantIntent is already effective
Owning runtime/control planeDashboards / Panels and variablesOwner accepts and reports the expected object stateDownstream dependencies are healthy
Effective stateTransformationsIndependent read-back matches the intended stateEvery client sees the same result
Consumer outcomeAlertingThe original bounded check succeeds in the same time windowProduction correctness outside this scope
Depth when you need it

Deep reference

Design & tradeoffs

Scope

Observability owns Grafana dashboards/query presentation. The underlying backend owns stored telemetry; source Domains own system semantics.

Confirmation

Confirm action

Continue?