Interview Prep/Monitoring & Observability/Observability as Code, Security & Vendor Choices

CloudWatch or Prometheus on AWS: when do you use each?

IntermediateProductionObservability as Code, Security & Vendor Choices
Answer

Use CloudWatch for AWS-managed services (ALB, RDS, Lambda, SQS, DynamoDB): the metrics are already there, free at standard resolution, and some (Lambda throttles, SQS age of oldest message) exist nowhere else. Alarms can trigger Auto Scaling and SNS natively.

Use Prometheus for Kubernetes and application metrics: richer labels, PromQL, no per-metric charge, and a huge exporter ecosystem. CloudWatch custom metrics charge per unique metric/dimension combination, so high-cardinality app metrics are expensive there.

Most AWS shops run both and unify them in Grafana with the CloudWatch data source, or pull key AWS metrics into Prometheus with YACE.

All Monitoring & Observability questions

More on Observability as Code, Security & Vendor Choices