Memory and disk metrics are missing in CloudWatch for EC2, only CPU shows
BeginnerTroubleshootingTracing, OpenTelemetry and CloudWatch
Answer
Likely causes → EC2 basic monitoring has no in-guest metrics; memory and disk need the CloudWatch agent with mem and disk sections.
Diagnose → Look for mem_used_percent in the CWAgent namespace.
Fix → Add to config:
"metrics": { "metrics_collected": {
"mem": { "measurement": ["mem_used_percent"] },
"disk": { "measurement": ["used_percent"], "resources": ["/"] } } }
Then fetch-config and restart.
Prevent → Standard agent config for all instances.
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