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?

demandé il y a 2 ans651 vues
1 réponse
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 :)

répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions