Interview Prep/Monitoring & Observability/Tracing, OpenTelemetry and CloudWatch

Container Insights on EKS shows no data after installing the add-on

IntermediateTroubleshootingTracing, OpenTelemetry and CloudWatch
Answer

Likely causes → The CloudWatch agent / Fluent Bit pods lack IAM permissions (no IRSA or Pod Identity), or pods are not scheduled on all nodes.

Diagnose →

kubectl get pods -n amazon-cloudwatch
kubectl logs -n amazon-cloudwatch ds/cloudwatch-agent | grep -i 'denied\|error'

Fix → Associate CloudWatchAgentServerPolicy with the cloudwatch-agent service account via IRSA or EKS Pod Identity, then restart the DaemonSet.

Prevent → Manage the add-on and its IAM in Terraform together.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Tracing, OpenTelemetry and CloudWatch