Grafana Dashboard Data Source Timeout
Overview
Find out why a Grafana dashboard data source times out. Separate panel-query cost, Grafana data proxy limits, reverse-proxy deadlines, network reachability and backend saturation before you raise any timeout.
Diagnose
Symptom
What responders observe.
Grafana panels show timeout, context deadline exceeded, query error or no data after waiting, while Save & test may pass or fail. The fault can hit one panel, one data source, one tenant or the whole instance. A longer dashboard range or a higher-cardinality query can still reproduce the problem when the basic health checks pass.
Detection
Metrics, logs and confirmation commands.
Record Grafana version, data-source plugin/version, data-source UID, dashboard/panel, time range, query, failure timestamp and exact message. Redact credentials and tenant headers.
Capture the evaluated request, timing, response size and error in Query Inspector, then run it again with a short, recent range and a narrower query.
Run Save & test or the data-source health endpoint with a restricted service account, then test the backend from the Grafana server network path.
Line up the Grafana server/data-proxy logs, reverse-proxy logs and backend query logs by the same timestamp or trace ID.
Compare elapsed time with the data-source query timeout, Grafana dataproxy timeout, TLS handshake timeout, reverse-proxy timeout and backend limit. The lowest deadline wins.
Root cause
Why the incident occurred.
The query scanned too much history or cardinality and exceeded the data source or backend query limit.
Grafana could not reach or authenticate to the backend because of DNS, routing, firewall, proxy, TLS or tenant-header configuration.
Grafana's data proxy or an upstream reverse proxy timed out before the backend answered.
Backend saturation, connection-pool exhaustion, locks or resource limits delayed the response.
The provisioned data-source configuration had drifted from the UI and was reapplied after a restart.
A plugin or Grafana upgrade changed query behaviour or exposed a version-specific defect.
Contain and prevent
Blast radius
What else this can affect.
Dashboards and alert evaluations that share the data source can become slow, fail or show stale/no data.
Broad retries and longer timeouts can add to backend load and make connection-pool exhaustion worse.
Debug logs and copied Query Inspector payloads can expose queries, labels, tenant identifiers or credentials if handled carelessly.
Prevention
Controls and guardrails that stop it recurring.
-
Alert separately on Grafana request duration/errors and data-source backend saturation.
-
Use bounded dashboard ranges, label filters, aggregation, appropriate minimum interval and recorded query budgets.
-
Keep provisioned data-source configuration version controlled and test it before rollout.
-
Set proxy and backend deadlines deliberately, and raise a timeout only once you have shown the query really should take longer.
-
Review the Grafana-Prometheus integration and Prometheus cardinality controls for metrics workloads.
Fix
Pre-flight checks
Check these before you change anything.
Save the dashboard, panel query, data-source provisioning file and relevant Grafana/proxy configuration.
Confirm whether the data source is provisioned; do not edit it in the UI if automation will overwrite it.
Get a restricted Grafana service-account token, and keep it out of the command history and the incident record.
Record backend latency and query-size baselines before you change any timeout.
Route query, provisioning, reverse-proxy and Grafana configuration changes through their owners with rollback copies.
Commands
# Grafana service and recent logs (read-only).
systemctl status grafana-server
journalctl -u grafana-server --since "-15 min" --no-pager
# Optional authenticated health check; keep the token in a protected environment variable.
curl --fail --silent --show-error --max-time 15 -H "Authorization: Bearer $GRAFANA_SERVICE_ACCOUNT_TOKEN" "$GRAFANA_URL/api/datasources/uid/$DATASOURCE_UID/health"
Verify and recover
Verification
Evidence required before you close the incident.
Re-run the affected panel with the original time range and confirm it completes within the agreed query budget.
Verify Save & test or the health endpoint succeeds and the backend receives the expected query.
Confirm Grafana, proxy and backend timeout/error rates return to baseline for at least 30 consecutive minutes.
Test a second dashboard or alert rule using the same data source to rule out panel-only recovery.
Remove the temporary debug logging and restricted tokens, then check the log level and alert evaluation are normal.
Rollback
The safe way back.
Revert the panel query, provisioning file, Grafana setting or reverse-proxy change from its captured version.
If a higher timeout makes saturation worse, put the old deadline back first and cut the query load.
Revoke any temporary service-account token and reset debug logging to info after evidence collection.
Escalate when
Conditions that need another owner.
-
The same timeout affects multiple data sources or Grafana instances.
-
Backend saturation, connection exhaustion or query correctness cannot be resolved by the owning team.
-
The health API is unavailable because the deployment has moved off the documented legacy endpoint.
-
Work from the instance's Swagger/API specification with the Grafana owner.
-
A plugin/Grafana regression or Grafana Cloud service issue is suspected.
-
Escalate with Grafana/plugin versions, redacted Query Inspector output, trace IDs and correlated logs.
Fixed? Get the next one before it hits you: The KBY Brief
Practical fixes for the systems you run, by email about twice a week. Unsubscribe at any time.
About this page
Credited to
Dates
Published
Last updated
Corrections
No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.
Was this useful?
Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.
Found this useful? Follow KBY for more like it.
Sources
Based on the vendor sources listed below. Check each step against your environment before acting.
First published 27 August 2026 · Last updated 18 November 2026
Troubleshoot general data source issues
Cited for: Documents connection, query-timeout, configuration and debug-log investigation.
Query inspector in Explore
Cited for: Documents query timing, raw request/response data and error inspection.
Configure Grafana
Cited for: Defines Grafana data-proxy logging and timeout configuration.
Data source HTTP API
Cited for: Documents the UID-based data-source health endpoint and required authentication.
Recommended reading
More from KBY that goes with this runbook.
Stack guideBest budget laptops for staff: the spec to standardise on and the models to buy
3 min read