Alert when a check rule returns no data
A check rule can now produce a degraded or critical failed check when its query returns no data. You no longer need a separate absent_over_time check rule next to each threshold check rule.
Until now, a check rule whose query returned no data stayed healthy. To find out that data had stopped, you needed a second check rule with absent_over_time for each threshold check rule.
Now each check rule has a When no data setting:
- Ignored: No data produces no failed check. This is the default, so existing check rules do not change.
- Degraded: No data produces a degraded failed check.
- Critical: No data produces a critical failed check.
When data comes back, the failed check becomes healthy. The grace periods apply as for a threshold violation.
In YAML, set the dash0.com/on-no-data annotation on the rule to ignored, degraded, or critical. The Dash0 API, the Dash0 CLI, and the Dash0 Terraform provider all accept it.
Good to know
- The setting applies only to an expression with a top-level comparison, such as
... > $__threshold. - A query that fails is not "no data".
- If an enablement condition returns no data, the rule is not enabled, and Dash0 does not report no data.
Read the docs: No Data