Grafana alerts fire as `DatasourceNoData` all night
IntermediateTroubleshootingAlerting and Alertmanager
Answer
Likely causes → The query returns no series during low traffic or after a metric rename; "No data" state is configured to alert.
Diagnose → Run the query for the night time range in Explore.
Fix → Make the query return 0 with or vector(0), or set "Alert state if no data" to Normal/OK, and add a separate absent-style alert for real missing data.
Prevent → Decide no-data behaviour per rule, not by default.
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