Root cause
The monitor shows No Data even though data exists. If your query contains a rollup function, this could be causing No Data.
Why this happens
Rollups aggregate metric data into buckets. If the monitor doesn’t have at least one complete bucket, it reports No Data. Additionally, rollup intervals are aligned to UNIX time, not to the start and end of monitor queries. A monitor may evaluate an incomplete rollup interval containing only a small sample of data, which can result in No Data.
For example, if a monitor has a 4-minute rollup and a 20-minute evaluation window, it produces one data point every 4 minutes, leading to a maximum of 5 data points within the window. If the Require Full Window option is enabled, the evaluation may result in “No Data” because the window is not fully populated.
Solution
Unless you are monitoring one aggregated value over a long period or monitoring sparse metrics (typically over 24 hours), Datadog recommends avoiding rollups in monitor queries. For more information on rollups, see
Rollups in monitors.
If you use rollups in your monitor query, add an evaluation delay at least equal to the rollup period. This ensures the monitor has at least one bucket of data to evaluate. For example, a 1-hour rollup requires a 3600-second evaluation delay.