ExitAmazon ECS: CloudWatch telemetry collection1 / 9
Explanation

One collector on each container instance

How to deploy and configure the CloudWatch agent as an ECS daemon service on EC2 container instances to collect metrics and logs for Container Insights. · associate

For an ECS cluster running on EC2, deploy the CloudWatch agent as an ECS service with the DAEMON scheduling strategy. ECS places one service task on each eligible container instance, including newly added instances. Eligibility depends on placement constraints and available resources; you do not maintain a desired task count.

This collector gathers EC2 instance-level telemetry for Container Insights. It complements ECS-managed telemetry; it does not replace enabling Container Insights on the cluster. This host-daemon deployment is for EC2 container instances, not Fargate.

The diagram follows the performance-data path. Container Insights uses Embedded Metric Format (EMF) performance events in CloudWatch Logs to produce metrics. Application output is a separate logging concern that you configure explicitly.

Host telemetryEMF performance eventsExtracted metrics
Amazon EC2ECS EC2 container instance
Amazon CloudWatchCloudWatch agent — ECS daemon task
Amazon CloudWatchCloudWatch Logs — Container Insights performance log group
Amazon CloudWatchContainer Insights metrics

1 / 5 The EC2 container instance supplies host resource information. This is the machine that the daemon must be able to inspect.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.