docs(alerting): add new guidelines to the missing data alerting guide (#107232)

pull/107273/head
Pepe Cano 3 weeks ago committed by GitHub
parent 01c3f99e4a
commit ff4d7d35c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      docs/sources/alerting/best-practices/missing-data.md

@ -201,6 +201,9 @@ Grafana Alerting handles distinct scenarios automatically. Here’s how to think
- Use Grafana’s _No Data_ handling options to define what happens when a query returns nothing.
- When _NoData_ is not an issue, consider rewriting the query to always return data — for example, in Prometheus, use `your_metric_query OR on() vector(0)` to return `0` when `your_metric_query` returns nothing.
- Use `absent()` or `absent_over_time()` in Prometheus for fine-grained detection when a metric or label disappears entirely.
- If data is frequently missing due to scrape delays, use techniques to account for data delays:
- Adjust the **Time Range** query option in Grafana to evaluate slightly behind real time (e.g., set **To** to `now-1m`) to account for late data points.
- In Prometheus, you can use `last_over_time(metric_name[10m])` to pick the most recent sample within a given window.
- Don’t alert on every instance by default. In dynamic environments, it’s better to aggregate and alert on symptoms — unless a missing individual instance directly impacts users.
- If you’re getting too much noise from disappearing data, consider adjusting alerts, using `Keep Last State`, or routing those alerts differently.
- For connectivity issues involving alert query failures, see the sibling guide: [Handling connectivity errors in Grafana Alerting](ref:connectivity-errors-guide).

Loading…
Cancel
Save