CloudWatch Metrics - Max time window exceeded for SQL query

0

Hi, I created a graph on CloudWatch using a query. If the graph is set to 3h or less, it's displaying. But when it's set to anything greater than 3h, its displaying a Max time window exceeded for SQL query error. Is there any limit I should adjust to make my query work?

This is the query I'm using

SELECT AVG("4XXError") FROM SCHEMA("AWS/ApiGateway") WHERE ApiName = 'apiname' AND Stage = 'stage'

TIA

已提問 2 年前檢視次數 5531 次
2 個答案
2
已接受的答案

See GetMetricData documentation:

Metrics Insights queries can query only the most recent three hours of metric data.

That is currently a hard limit and there is nothing you can do to extend.

AWS
已回答 2 年前
  • That makes sense, thanks!

  • Could someone please share the work around for this? Is manual metrics query for every instance the only way?

0

"fixed" it for our use case (displaying uptimes of ecs tasks) for now by setting the intervals here: Enter image description here

Eric
已回答 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南