Closed
Description
Component(s)
receiver/awscontainerinsight
What happened?
Description
Even if the HOST_PROC
env var is set the receiver can fail to start if the default host proc (/rootfs/proc
) doesn't exist.
Steps to Reproduce
Run the receiver in a image without /rootfs/proc
but with HOST_PROC
env var set to a valid location.
Expected Result
The receiver should use the value in HOST_PROC
and start without issues.
Actual Result
The receiver fails to start and triggers a shutdown of the collector.
Collector version
v0.111.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
No response
Log output
1729038071019,"2024-10-16T00:21:11.019Z error graph/graph.go:426 Failed to start component {""error"": ""failed to initialize NodeCapacity: lstat /rootfs/proc: no such file or directory"", ""type"": ""Receiver"", ""id"": ""awscontainerinsightreceiver""}"
1729038071019,2024-10-16T00:21:11.019Z info [email protected]/service.go:270 Starting shutdown...
Additional context
No response