Description
Basic EC2 monitoring reports most instance metrics every five minutes. Detailed monitoring sends supported metrics every minute. Status checks already run every minute.
Potential impact
A short load increase may be missed by a five-minute metric or an alarm that uses it.
Remediation
Set monitoring: true if you need one-minute metrics. Review the added cost and align alarm periods and evaluation counts with the response you need. Collect guest metrics such as memory separately and check recovery settings if you need automatic recovery.
Examples
These excerpts show only the monitoring option. Supply the AMI, instance type and networking separately.
Before
yaml
resources:
example:
type: aws:ec2:Instance
properties:
monitoring: false
After
yaml
resources:
example:
type: aws:ec2:Instance
properties:
monitoring: true