Can metric filter stats between different AWS regions be aggregated?

0

I have created a Cloudwatch Metric Filter for response latency We have regions in us-west-2 and us-east-2 and I have put separate Metric filters in each region's different Cloudwatch Log groups.

I want to be able to query and add all response latencies between both regions so I can calculate aggregate values like Averages.

How can I do this? Log Insights can't see different region Log Groups so I can't directly use this. I heard Metric Math may be able to. Is there a way?

已提问 2 年前744 查看次数
1 回答
1

You are looking for AWS CloudWatch Cross-account cross-Region dashboards (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_xaxr_dashboard.html). You need to enable the option first in CloudWatch settings, and then you will see the option to choose Account Id/Region in Metrics dashboard.

After adding different metrics, use CloudWatch math to aggregate values, ex: AVG, SUM.

AWS
Ramy_Z
已回答 2 年前
  • Thanks. But the metrics are all "separate". You can choose for instance to "see" us-west-2 or us-east-2. But you can't combine them into one statistic (aggregate). Furthermore, you can't do this in Log Insight and choose two Log groups from two different regions so you can apply some queries to both to get aggregrate values --- like averages of two regions. I was wondering if you have been able to combine metrics from two regions into an average by a different means?

  • After adding both metrics, use CloudWatch math https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html you can use many functions available like AVG, SUM. Regarding log insights, i believe this feature is still not available, and you will need to aggregate the data for ex in S3 and use other services to search.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则