PREQUEL-2025-0073
OTel Collector Resource Detection FailureLowImpact: 5/10Mitigation: 1/10
Description
The **resource_detection** processor fails while trying to determine\nbasic host attributes and repeatedly logs:\n\n```\nfailed getting OS type: failed to fetch Docker OS type:\nCannot connect to the Docker daemon at unix:///var/run/docker.sock.\nIs the docker daemon running?\n```\n\nThe Collector keeps running but exports traces, metrics, or logs\nwithout mandatory resource labels, leading to data loss or\nmis-grouping in the backend.\n
Mitigation
1. **Upgrade** to **v0.114.0** or later, which retries Docker\n detection and falls back to other detectors if it still fails.\n2. **Skip the Docker detector** on containerd/CRI-O clusters:\n\n ```yaml\n processors:\n resource_detection:\n detectors: [system]\n ```\n\n3. **Set static fallback attributes** so data is still tagged even if\n detection fails:\n\n ```bash\n OTEL_RESOURCE_ATTRIBUTES=\"os.type=linux,host.name=$(hostname)\"\n ```\n