The CloudWatch bill jumped from $2k to $15k a month. How do you find and cut the cost?
IntermediateScenarioCloud Monitoring, Incidents and Migrations
Answer
Situation read → Usual suspects: log ingestion, custom metrics with high-cardinality dimensions, and API calls from dashboards or exporters.
What I'd do →
- Cost Explorer filtered on CloudWatch, grouped by usage type (
DataProcessing-Bytes,MetricMonitorUsage,GMD-Metrics,TimedStorage-ByteHrs). - Logs: find the biggest log groups with the
IncomingBytesmetric; reduce DEBUG logging, set retention, use the Infrequent Access class for rarely searched logs. - Custom metrics: look for dimensions like
RequestIdorUserIdthat create thousands of metrics. - API calls: Grafana dashboards refreshing every 10 s or YACE polling every namespace every minute; reduce frequency and scope.
- Delete unused alarms and dashboards; set budgets with alerts.
Why → CloudWatch bills on several small meters that add up quietly.
Interview tip → Set --retention-in-days on every log group by default through IaC; "never expire" is the default.
More on Cloud Monitoring, Incidents and Migrations
A new AWS workload uses EC2, an ALB and RDS, with only CloudWatch available. Which alarms do you create first?BeginnerYour company has 50 AWS accounts. How do you get one monitoring view?IntermediateYour team uses Prometheus and Grafana, but RDS, SQS and ALB metrics live only in CloudWatch. How do you unify?IntermediateHow do you monitor a fleet of AWS Lambda functions?BeginnerYour RDS PostgreSQL database gets slow every afternoon. What monitoring do you use to find out why?BeginnerFor a new EKS cluster, should you use CloudWatch Container Insights or the Prometheus stack?Intermediate