Monitoring CPU Utilization of Multiple Instances with a Single Alarm

0

Currently, I am seeking a way to efficiently monitor and receive alerts for high CPU utilization on all instances using a single CloudWatch alarm.

Also, I would like to explore the possibility of implementing an event rule pattern that triggers an SNS notification when the CPU utilization surpasses a predefined threshold.

Request your guidance and support in the following areas: 1)Confirmation on the feasibility of utilizing Amazon CloudWatch Events and EventBridge to monitor CPU utilization and trigger SNS notifications when the threshold is exceeded. 2)Assistance in designing an appropriate event rule pattern to capture high CPU utilization events and generate the corresponding SNS notifications. 3)Recommendations on best practices and considerations to ensure reliable event capture and accurate notifications. 4)Any additional resources, documentation, or examples that can aid in the implementation of this solution.

1 回答
-1

You can make use of CloudWatch search expression syntax to create a single CloudWatch alarm that tracks CPU Utilization across all EC2 instances. For example, you can create a search expression that displays the AWS/EC2 CPUUtilization metric for all instances in the Region. If you later launch a new instance, the CPUUtilization of the new instance is automatically added to the graph. See reference document.

SEARCH('{AWS/EC2,InstanceId} MetricName="CPUUtilization"', 'Average')
AWS
Sathesh
已回答 10 个月前
  • I don't know if this used to work but it doesn't as of March 2024. An error message is displayed "You cannot create an alarm on a math expression containing the SEARCH function"

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则