Container Insights

CloudWatch Container Insights collects, aggregates, and summarizes metrics and logs from your containerized applications and microservices. The metrics include utilization for resources such as CPU, memory, disk, and network. Container Insights also provides diagnostic information, such as container restart failures, to help you isolate issues and resolve them quickly.

Monitoring Amazon ECS with Container Insights

  1. Move to Amazon CloudWatch. Select Resources under Container Insights. You can view the metrics on the CloudWatch automatic dashboards. InsightDashboard
  2. Navigate ECS Clusters, ECS Services, and ECS Tasks. You will find useful metrics for each resource and you can check alert in the same page.
  • ECS Cluster ECSCluster
  • cats service: cats service runs two tasks and it is why you can see the listed two tasks on the bottom. cats
  • cats task definition: catsdef includes two containers. One is AWS Firelens powered log_router and the other is cats web applicaiton. It is why you can find four container in total (2 containers per 1 task, and there are 2 tasks in total.)
  1. Container Insights not only collects your ECS cluster metrics but also gathers tasks’. You can monitor at once which tasks consumes your cluster resources such as CPU, memory, network and storage. You may create your own dashboard and select important metrics to effectively monitor your dashboard. Try Add to dashboard.

  2. Find more about Container Insights metrics on ECS.