Soru

Zorluk: OrtaCloudWatch Dashboards and Container Insights

A SysOps Administrator is tasked with enabling Amazon CloudWatch Container Insights for an existing Amazon ECS cluster where all tasks run on AWS Fargate. Additionally, the administrator must create a CloudWatch dashboard to monitor the CPU and memory utilization of the cluster and its tasks. Which combination of actions should the SysOps Administrator take to meet these requirements? (Select TWO.)

  1. Enable Container Insights for the cluster by updating the cluster settings using the AWS CLI command: aws ecs update-cluster-settings --cluster <cluster-name> --settings name=containerInsights,value=enabledCevap
  2. Create a CloudWatch dashboard and add widgets that reference the metrics under the ECS/ContainerInsights namespace.Cevap
  3. C
    Enable detailed monitoring within the ECS task definition parameters to increase the Container Insights metric resolution from 5 minutes to 1 minute.
  4. D
    Configure a metric filter on the /aws/ecs/containerinsights/ performance log group and set the log group retention period to 0 days to prevent metrics from being deleted.
  5. E
    Create an Amazon EventBridge rule that triggers an AWS Systems Manager Automation document to extract performance data and refresh the CloudWatch dashboard widgets.

Cevap

Enable Container Insights on the cluster using the AWS CLI update-cluster-settings command, and then create a CloudWatch dashboard with widgets displaying metrics from the ECS/ContainerInsights namespace.
For an Amazon ECS cluster running on AWS Fargate, the SysOps Administrator must enable Container Insights by updating the cluster settings. The AWS CLI command update-cluster-settings achieves this. Once enabled, ECS publishes metrics to the ECS/ContainerInsights namespace. The administrator can create a CloudWatch dashboard and add widgets referencing this namespace to display the utilization metrics.

Adım Adım Çözüm

1
Enable Container Insights at the ECS cluster level
The AWS Fargate container infrastructure begins publishing CPU, memory, storage, and network utilization metrics.
Fargate tasks do not support running the CloudWatch agent daemon directly as a daemonset, so Container Insights must be enabled via the cluster settings.
2
Build a CloudWatch dashboard pointing to the metric namespace
A centralized dashboard displays the metrics in real-time.
ECS Container Insights metrics are pushed to the ECS/ContainerInsights namespace, which can be visualized by adding standard metric widgets to the dashboard.

Anahtar Kavram

For Amazon ECS clusters running on AWS Fargate, Container Insights is enabled via cluster settings, and the infrastructure automatically pushes performance metrics to the ECS/ContainerInsights namespace without the need for manual agent configuration.
Bu soruyu puanla