how can I configure cloudwatch to monitor things like CPU/RAM/Disk/IO for auto scaling groups using a wildcard?

0

From what I have observed, cloudwatch only lets you select and monitor things by individual instance ID's, and seem to be frozen in time as soon as you hit save -- so if the instance is no longer there 10 minutes later, because it was replaced with a new one, you only get the old data

i've been trying to figure out how to create a dashboard to monitor apps running on Ec2 auto scaling groups based on something flexible, that can change over time. They share the same tag `aws:autoscaling:groupName"

How can pass in a wildcard argument for substring matching?

so far this is what i have done:

navigate to: Cloudwatch > Metrics > Explorer

then under the metrics input use EC2 Instance: CPUUtilization: Average

under From i want to use a wildcard, since GroupID's will always change as new deploys roll out

aws:autoscaling:groupName:*myGroupsPartialSubstring*

已提問 2 年前檢視次數 1536 次
1 個回答
0

Good question.

For Autoscaling Groups, AWS does collect metrics for the instances within an autoscaling group.

By default, basic monitoring is enabled for the autoscaling group. If you want detailed CloudWatch monitoring, you can enable that as well in the launch template: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html#advanced-settings-for-your-launch-template.

More information here: https://docs.aws.amazon.com/autoscaling/ec2/userguide/enable-as-instance-metrics.html

From there, you can then look at both Autoscaling metrics and EC2 metrics: https://docs.aws.amazon.com/autoscaling/ec2/userguide/viewing-monitoring-graphs.html

The metrics you see at the autoscaling group level will be aggregated for the ec2 instances within the autoscaling group and can be viewed here: https://console.aws.amazon.com/ec2autoscaling/

jsonc
已回答 2 年前

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

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

回答問題指南