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.
More on Tracing, OpenTelemetry and CloudWatch
Traces show only the frontend span; downstream services start new tracesIntermediateTraces break at the API gateway / ingress controllerIntermediateNo traces at all arrive; the app logs `Failed to export spans. The request could not be executed. Full error message: Failed to connect to localhost/127.0.0.1:4317`BeginnerSDK error `Unimplemented` / `404 Not Found` when exporting to the collectorIntermediateOTel collector logs `Exporting failed. Will retry the request after interval. {"kind": "exporter", "data_type": "traces", "name": "otlp", "error": "rpc error: code = Unavailable desc = connection error"}`IntermediateCollector logs `Dropping data because sending_queue is full`Advanced