Cloudwatch Log metric aggregation

Cloudwatch metric 在以分鐘或小時搜尋較長資料區間時(如三或六個月)會發現資料並不會顯示

主因是 Cloudwatch metric 會將資料做彙總, 提供較粗的粒度查詢
資料仍然存在, 但不提供較細粒度的資料查詢

Cloudwatch 規則:

  • 資料粒度低於 60 秒, 可以查詢 3 小時內範圍
  • 資料為 60 秒, 可以查詢 15 天內範圍
  • 資料為 300 秒, 可以查詢 63 天內範圍
  • 資料為 3600 秒, 可以查詢 455 天內範圍

References

https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html