A SysOps Administrator needs to create an Amazon CloudWatch dashboard to monitor a production Amazon EKS cluster. The dashboard must include a widget that dynamically lists the top 10 EKS pods consuming the most memory. CloudWatch Container Insights is already enabled for the cluster. Which combination of actions must the SysOps Administrator perform to configure this dashboard widget? (Select TWO.)
- Add a log table widget to the CloudWatch dashboard and select the `/aws/containerinsights/<cluster-name>/performance` log group as the source.Cevap
- Write a CloudWatch Logs Insights query that filters events where `Type` is equal to `Pod`, sorts by `pod_memory_utilization` in descending order, and limits the output to 10.Cevap
- CCreate a metric widget on the dashboard that queries the `ContainerInsights` namespace using the `pod_memory_utilization` metric and the `PodName` dimension.
- DConfigure a CloudWatch Logs metric filter on the EKS kubelet log group to extract memory usage metrics, and add a stacked area metric widget to the dashboard.
- ECreate an Amazon EventBridge rule that triggers an AWS Systems Manager Automation runbook to query EKS pod status, and output the results to a CloudWatch dashboard markdown widget.
Cevap
Add a log table widget to the CloudWatch dashboard targeting the performance log group, and write a CloudWatch Logs Insights query that filters by Pod, sorts by memory utilization in descending order, and limits the output to 10.
To display a dynamic list of ephemeral resources like EKS pods, you must query the raw performance logs collected by Container Insights rather than standard metric widgets. Container Insights writes structured JSON telemetry to the `/aws/containerinsights/<cluster-name>/performance` log group. By adding a log table widget to the dashboard and writing a Logs Insights query that filters for pod-level events, sorts them by memory usage, and limits the count to 10, the dashboard will dynamically display the top 10 memory-consuming pods in real time.
Adım Adım Çözüm
Anahtar Kavram
CloudWatch Container Insights publishes granular performance logs to a dedicated log group, which can be dynamically queried and displayed in dashboards using Logs Insights widgets.