AWS Certified DevOps Engineer – ProfessionalMonitoring and LoggingMedium

A DevOps team is responsible for a mission-critical microservices application deployed on Amazon EKS. They need to gain deep insights into the performance and health of their Kubernetes clusters, including node, pod, and container-level metrics, and also collect application logs. The solution must provide a single pane of glass for monitoring and allow for historical analysis. How should the team implement this monitoring solution?

  1. AConfigure Prometheus and Grafana on a separate EC2 instance to scrape metrics from EKS and visualize them.
  2. BUse AWS X-Ray to trace requests across the microservices and capture pod-level metrics.
  3. CEnable CloudWatch Container Insights for the EKS cluster to automatically collect, aggregate, and summarize metrics and logs.
  4. DDeploy the CloudWatch Agent to each EC2 instance in the EKS cluster to send system metrics and logs to CloudWatch.
Show answer & explanation

Correct answer: C. Enable CloudWatch Container Insights for the EKS cluster to automatically collect, aggregate, and summarize metrics and logs.

CloudWatch Container Insights is specifically designed for monitoring containerized applications, including Amazon EKS. It automatically collects, aggregates, and summarizes metrics and logs from clusters, nodes, pods, and containers, providing a 'single pane of glass' experience with pre-built dashboards and enabling historical analysis. This directly addresses the requirement for deep insights into EKS performance and health.

Why the other options are wrong

  • A. While Prometheus and Grafana can achieve this, Container Insights offers a more integrated, managed, and 'single pane of glass' solution within AWS without managing additional infrastructure.
  • B. AWS X-Ray is for distributed tracing, focusing on request flow and latency, not for collecting comprehensive system, pod, and container-level metrics and logs for cluster health.
  • D. While the CloudWatch Agent can collect system metrics, Container Insights is optimized for container environments and provides more granular, aggregated views (pod/container level) automatically.

CloudWatch Container Insights

A fully managed monitoring solution for containerized applications, collecting, aggregating, and summarizing metrics and logs from container environments like EKS.

  • Provides cluster, node, pod, and container-level metrics.
  • Automatically collects and aggregates data.
  • Offers pre-built dashboards and log analysis capabilities.

Memory trick: Container Insights: Your EKS Cluster's All-in-One Monitor.

More Monitoring and Logging questions