cloudwatch alarm setup by resource group

0

I like the idea of setting up resource groups, but can you setup cloudwatch alerts based on metrics by that group? Example, if I have 5 API servers, I have a resource tag, made a group and the 5 appear. But, I don't see a simple way if I add a new server to that group to have it automatically know "oh, I am supposed to have an alarm on my CPU" and other cloudwatch rules. Is there an easy/automated way to do that?

질문됨 2년 전652회 조회
1개 답변
0

Hi lraymond!

I have found on a different forum an example of using AWS Lambda in order to automatically create alarms:

https://stackoverflow.com/questions/62655992/how-to-create-automatic-cloudwatch-alarm-on-new-ec2-instance-creation

Of course you need to create alarms when the instances are created, and delete them on termination so that you do not reach any limits and keep it clean.

Also you can create Composite Alarms to aggregate alarms from different sources:

https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Composite_Alarm.html

If this does not meet your requirements, please provide more details or an example :)

답변함 2년 전

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

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

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

관련 콘텐츠