Athena CloudWatch Metrics Connector 仅返回过去 15 天的数据

问题描述 投票:0回答:1

我已经设置了 Athena CloudWatch Metrics 连接器:https://docs.aws.amazon.com/athena/latest/ug/connectors-cwmetrics.html,但是当我从 Athena UI 查询 metric_samples 表中的数据时从过去两个月来看,最早返回的数据点是 15 天前。

我从 CloudWatch UI 中看到过去两个月的数据确实存在。

我还知道 CloudWatch 根据数据点的周期保留指标数据:https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html,但是如果我尝试查询数据周期 > 60 秒的点,我没有得到结果。

如何通过 Athena 查询超过 15 天的 CloudWatch 指标数据点?

amazon-cloudwatch amazon-athena
1个回答
0
投票

发现我需要将查询中的周期指定为 period = 300 而不是 period != 60 或 period > 60。

https://community.amazonquicksight.com/t/athena-cloudwatch-metrics-connector-only-returns-data-from-the-past-trailing-15-days/17955

© www.soinside.com 2019 - 2024. All rights reserved.