How do you control CloudWatch costs?
BeginnerProductionCost Optimization
Answer
Set retention on every log group (default is never expire), use the Infrequent Access log class for logs you rarely query, avoid DEBUG logging in prod, sample high-volume logs, send bulk logs to S3 via Firehose instead of CloudWatch, reduce custom metric cardinality (each unique dimension combination is a billed metric), prefer Embedded Metric Format for app metrics, and cut detailed monitoring on non-critical instances. Find top ingesters with the IncomingBytes metric per log group.
More on Cost Optimization
Where do you start when asked to cut an AWS bill?BeginnerCompute Savings Plans vs EC2 Instance Savings Plans vs Reserved Instances?IntermediateHow do you size a Savings Plans commitment?AdvancedWhere is Spot a good fit and where is it not?BeginnerHow do you configure an ASG for Spot reliability?IntermediateHow do you rightsize EC2, RDS and containers?Intermediate