A 7-day query window is awkward when your SLO is defined over 30 days. On 20 November AWS raised the PromQL query window for OpenTelemetry metrics in CloudWatch from 7 days to 30. It's a small line in the What's New feed, but it changes what you can alarm on.
What the announcement says
CloudWatch now supports a 30-day query window for PromQL queries against OpenTelemetry metrics. The stated benefits:
- query a month of data in one request
- chart month-over-month and week-over-week trends on one dashboard
- alarm on a 30-day baseline
- calculate availability and remaining error budget for a full SLO period in one query
AWS also makes a fair point about capacity forecasting: a 7-day baseline skews towards a single busy weekend.
It's at no additional cost, in every region where PromQL queries against OpenTelemetry metrics in CloudWatch are available.
What an SLO query looks like
The general shape of a 30-day availability query in PromQL is a ratio of good requests to total requests over a [30d] range. I'm sketching this from general PromQL knowledge, not from the AWS docs, and your metric names will differ:
sum(increase(http_requests_total{status!~"5.."}[30d])) / sum(increase(http_requests_total[30d])) Error budget remaining is then your target (say 0.999) compared with that ratio. I haven't run this against CloudWatch, so check the supported functions and the OpenTelemetry metric naming in the CloudWatch User Guide section the announcement links to, "Query OpenTelemetry metrics with PromQL".
What I'd check first
- Query cost and latency. The window is free per the post, but a 30-day range over high-cardinality metrics is a heavier query. Try it on one service before putting it on a dashboard that auto-refreshes.
- Retention. I haven't confirmed the retention of the metrics you're querying. Check that 30 days of data actually exists for them.
- Alarm design. A 30-day ratio moves slowly. For fast detection you still want shorter-window burn-rate alarms. The long window is for the budget, not the page.
- Where the metrics come from. This applies to OpenTelemetry metrics queried with PromQL, not every CloudWatch metric.
My view
If you've been exporting metrics somewhere else just to compute monthly SLOs, this might let you drop a component. I'd try it on one service this week and compare the number against whatever you compute today. If they disagree, find out why before trusting either.
Sources
Drafted with AI assistance. I review and edit every post.


