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년 전5530회 조회
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠