Soru

Zorluk: OrtaCloudWatch Dashboards and Container Insights

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?

  1. A
    Enable detailed monitoring on the EC2 instances in the cluster and configure the CloudWatch agent to send metrics every minute.
  2. B
    Modify the CloudWatch log group retention settings for the cluster to stream container performance logs directly to a custom dashboard.
  3. Modify the cluster settings to enable Container Insights for the Amazon ECS cluster.Cevap
  4. D
    Create 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

1
Identify the target container service and environment where performance metrics are needed.
The environment is an Amazon ECS cluster running on Amazon EC2 container instances.
Container Insights must be enabled at the ECS cluster level to retrieve task and service metrics.
2
Evaluate the native integration options for Amazon ECS.
Container Insights integrates natively with Amazon ECS without requiring manual agent daemon setups on the hosts.
Enabling Container Insights on the cluster setting allows the Amazon ECS agent to handle metric collection automatically.
3
Configure the cluster-level setting using the AWS Management Console or AWS CLI.
The ECS cluster settings are modified to set Container Insights to enabled.
This updates the cluster to stream task and service metrics directly to the ECS/ContainerInsights namespace in CloudWatch.

Anahtar Kavram

Enabling Container Insights on Amazon ECS clusters
Bu soruyu puanla