A SysOps Administrator needs to collect container-level performance metrics for an Amazon ECS cluster running on Amazon EC2 instances. The administrator wants to use CloudWatch Container Insights to monitor the task and service utilization. Currently, only basic EC2 metrics are visible. Which action should the administrator take to enable Container Insights metrics for this cluster?
- AEnable detailed monitoring on the EC2 instances in the cluster and configure the CloudWatch agent to send metrics every minute.
- BModify the CloudWatch log group retention settings for the cluster to stream container performance logs directly to a custom dashboard.
- Modify the cluster settings to enable Container Insights for the Amazon ECS cluster.Cevap
- DCreate an Amazon EventBridge rule that detects task state changes and triggers an AWS Systems Manager Automation runbook to collect performance metrics.
Cevap
Modify the cluster settings to enable Container Insights for the Amazon ECS cluster.
To collect Container Insights metrics for Amazon ECS clusters (on both EC2 and Fargate), a SysOps Administrator must enable the Container Insights setting on the ECS cluster. Once enabled, ECS natively sends performance metrics to CloudWatch under the ECS/ContainerInsights namespace without requiring additional agent installation or detailed EC2 monitoring.
Adım Adım Çözüm
Anahtar Kavram
Enabling Container Insights on Amazon ECS clusters