Interview Prep/Monitoring & Observability/Alerting and Alertmanager

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.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Alerting and Alertmanager