- Newest
- Most votes
- Most comments
Is there any response from AWS support for this? We're being encouraged to use Cloudwatch Agent in place of external monitoring tools and this would be key functionality. Documentation for these common cases would be great!
Use Alarms on CloudWatch Metrics Insights queries instead, see Cloudformation definition for "Cloudwatch Alarm" based on "Metrics Insights query" .
You can use the "Multi source query" tab in Metrics console or build one yourself, e.g.
SELECT MAX(CPUUtilization) FROM SCHEMA("AWS/EC2", InstanceId)
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')
Relevant content
- asked 8 months ago
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"