Use it for dashboards and exploring telemetry.
Grafana
Grafana visualises data from many sources (Prometheus, Loki, Tempo, Elasticsearch, SQL) in dashboards, and can also run alert rules.
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.
data source → query → panel → dashboard → user
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
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.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
Subtopics
Go one level deeper into this subject.
Good dashboards start with service-level signals at the top and let users drill down to details, using variables for environment and instance.
Subtopic Grafana AlertingGrafana alerting evaluates queries on a schedule and sends notifications through contact points according to notification policies.
Provision dashboards and data sources as code. Use variables for environment/service. Explore view is the fastest way to test a query.
curl -s http://grafana:3000/api/health— first check for this topiccurl -s localhost:9090/-/ready— Prometheus readycurl -s 'localhost:9090/api/v1/query?query=up'— scrape targets up/downpromtool 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:
| Practice | Benefit |
|---|---|
| Start with overview → drill-down structure | Fast orientation |
| Use variables (site, host, service) | One dashboard for many systems |
| Show units, thresholds and SLO lines | Readable at a glance |
| Annotate deployments/changes | Correlate with events |
| Link panels to logs and traces | Faster 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
Configuration & expected output
Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.
Configuration example
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: 30sExpected output
curl -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.Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
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.
Quick lookup tables
Grafana verification boundary matrix
A compact lookup separating intent, owning component state, effective state and consumer-visible outcome for Grafana.
| Boundary | Inspect | Healthy interpretation | Do not infer |
|---|---|---|---|
| Intent | Data sources | Intended object/scope is explicit and versioned where relevant | Intent is already effective |
| Owning runtime/control plane | Dashboards / Panels and variables | Owner accepts and reports the expected object state | Downstream dependencies are healthy |
| Effective state | Transformations | Independent read-back matches the intended state | Every client sees the same result |
| Consumer outcome | Alerting | The original bounded check succeeds in the same time window | Production correctness outside this scope |
Deep reference
Design & tradeoffs
Scope
Observability owns Grafana dashboards/query presentation. The underlying backend owns stored telemetry; source Domains own system semantics.