We use some basic CloudWatch alarms on our EC2 instances to perform notification via SNS of high CPU, etc. Is there a good way to automatically apply our standard alarm configuration to new EC2 instances spun up by an Auto Scaling Group?
Automatically create CloudWatch Alarms for Autoscaling instances
amazon-web-services
Related Topic
- How to launch EC2 instance with preconfigured AWS Alarm
- How to set EC2 instances with a specific tag to terminate automatically after a set amount of time after launch
- How to run a shell script on all amazon ec2 instances that are part of a autoscaling group
- How to auto-terminate EC2 instances after 24 hours
- AWS ELB – How to Get Detailed Logs of Non-Application 500 Errors
- CloudWatch Alarm – Creating an Alarm for ECS Service Task Failures
Best Answer
Many of the common CloudWatch metrics are also aggregated based on their Auto Scaling group name.
So you can create alarms based on the CPU metric of the Auto Scaling group. You won't see the individual instance's metrics, but you'll be able to work with maximums, minimums, averages, etc.