EC2 waste check
Idle EC2
idle_ec2
What it finds
Finds EC2 instances that are running but doing almost no work, which you keep paying for.
One of the EC2 checks, in the compute optimization group.
How it is detected
Hourly CPU < 5% average for 14 days, with no sustained or heavy peaks; ASG, EKS, Beanstalk, EMR, Spot Fleet and EC2 Fleet instances excluded
Detection confidence: MEDIUM. This is the criterion from our public docs. It runs in a local scan with your own read-only credentials.
- Signal
- CloudWatch CPUUtilization for the instance (AWS/EC2), read hourly
- Statistic
- Hourly Average and Maximum
- Threshold
- Average CPU below 5 percent, 95 percent of hours averaging below 10 percent, 95 percent of hourly peaks below 20 percent, and no hourly peak at or above 50 percent. At least 75 percent of the hours must have data.
- Window
- 14 days online. In an Air-Gapped export, the days the export collected, capped at 14 (7 by default).
- Monthly figure
- The instance type's hourly price from the AWS Pricing API, multiplied by the hours in a month.
- How to fix
- Stop the instance after checking nothing needs it (start it again to roll back), or terminate it if it is truly unused.
- In the docs
- This check in the detector reference
Run it yourself
Nothing leaves your machine unless you choose to share a summary at the end.