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년 전1584회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인