Skill 5.3.2
Implement monitoring for containerized applications (for example, by using Amazon ECS, Amazon EKS with Container Insights).
Key Concepts
CloudWatch Container Insights collects CPU, memory, network and storage metrics and performance log events for ECS clusters, services and tasks and for EKS clusters, nodes, pods and containers, with automatic dashboards. Container Insights with enhanced observability adds detailed per-container metrics and curated views that help find the failing component quickly; on EKS it is installed with the CloudWatch Observability add-on, which also collects logs with Fluent Bit and can enable Application Signals.
Application logs go to CloudWatch Logs through the awslogs driver or FireLens (Fluent Bit) on ECS and Fluent Bit on EKS. Prometheus metrics from applications can be scraped by the CloudWatch agent, and the ECS deployment circuit breaker, task state change events and EKS control plane logs complete the picture. Alarms on service-level metrics, such as running task count or pod restarts, catch problems that host metrics miss.