Grafana-managed alert shows `Error` state with `[sse.dataQueryError] failed to execute query A: ... context deadline exceeded`
IntermediateTroubleshootingAlerting and Alertmanager
Answer
Likely causes → The alert query is too heavy or the data source is slow; Grafana's evaluation timeout is hit.
Diagnose → Run the query in Explore with the same time range and check duration.
Fix → Simplify or back it with a recording rule; set "Error state handling" to Keep last state or Error deliberately rather than Alerting.
Prevent → Prefer Prometheus-evaluated rules for critical alerts; Grafana alerting depends on Grafana being up.
More on Alerting and Alertmanager
An alert shows `Pending` in Prometheus but never goes to `Firing`BeginnerAn alert is `Firing` in Prometheus but nothing reaches AlertmanagerIntermediateAlertmanager shows the alert but Slack receives nothingBeginnerAlertmanager logs `notify retry canceled due to unrecoverable error after 1 attempts: channel_not_found`IntermediateAlertmanager logs `unexpected status code 404: no_service` / `invalid_token` for SlackBeginnerAlertmanager fails to load config: `yaml: unmarshal errors: field matchers not found in type config.plain`Intermediate