Grafana
Cheat sheet · https://pcornel.dk/topic.php?topic=6105
Answer
Grafana visualises data from many sources (Prometheus, Loki, Tempo, Elasticsearch, SQL) in dashboards, and can also run alert rules.
Remember
Provision dashboards and data sources as code. Use variables for environment/service. Explore view is the fastest way to test a query.
First checks
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
Verify in this order
data source → query → panel → dashboard → user
Where it usually breaks
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.
Grafana verification boundary matrix
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6105