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年前654ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ