AWS Resource Type (AWS service name)
Amazon EC2 instances (Amazon CloudWatch detailed monitoring)
Opportunity Description
By default, Amazon EC2 sends instance metrics (CPU, disk I/O, network) to CloudWatch every 5 minutes (basic monitoring). Detailed monitoring sends the same metrics every 1 minute. Short spikes that a 5-minute average hides become visible, which gives a more reliable picture of how busy an instance really is before it is resized.
This is an enabling opportunity rather than a direct saving, and it adds a small CloudWatch charge per instance.
Criteria for identifying the opportunity
Cost / activity filters (from CUR)
An instance is considered when:
-
It has EC2 running-hours (BoxUsage) in the last 30 days and was still running within the last day.
-
Its annualized public (on-demand) cost is above your tenant's configurable resource cost threshold.
-
It has no CloudWatch detailed-monitoring charges (CW:MetricMonitorUsage) in the last 30 days.
Eligibility validations (EC2 API checks)
-
ResourceExists: the instance still exists.
-
EnhancedMetricsDisabled: the instance's monitoring state is not already enabled.
Potential Savings (if known)
CloudFix reports no direct saving for this opportunity. Detailed monitoring is billed by CloudWatch per metric, per instance, per month. See Amazon CloudWatch pricing for the rate in your Region.
What happens when the Fixer is Executed?
The fixer runs an SSM Automation runbook that calls the EC2 MonitorInstances API for the instance, which switches it from basic to detailed monitoring. Nothing else on the instance changes.
Is it possible to roll back once CloudFix implements the Fixer?
CloudFix does not roll this change back automatically. To return to basic monitoring, select the instance in the EC2 console and choose Actions → Monitor and troubleshoot → Manage detailed monitoring, then clear Enable. From the AWS CLI: aws ec2 unmonitor-instances --instance-ids <instance-id>.
Does the fix require downtime?
No. Detailed monitoring is switched on without stopping or restarting the instance.
Additional Resources
-
Manage detailed monitoring for your EC2 instances (AWS documentation)
Bill Gleeson
Comments