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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南