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

preguntada hace 2 años5531 visualizaciones
2 Respuestas
2
Respuesta aceptada

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
respondido hace 2 años
  • 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
respondido hace 2 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas