Is your feature request related to a problem? Please describe.
There is a docker detector, but it only generates host metadata.
In components such as javaagent, there are resource providers that can get the container.id field and associate it with container metadata. Is it possible to add similar functionality to this component?
Describe the solution you'd like
Add detector to get contianer.id If a container runtime API is mounted, e.g. docker.sock, associate the information directly. Otherwise we can provide another component like k8sattributes processor that runs on the host and forwards the data and adds container metadata.
Component(s)
processor/resourcedetection, processor/resourcedetection/internal/docker
Is your feature request related to a problem? Please describe.
There is a docker detector, but it only generates host metadata.
In components such as javaagent, there are resource providers that can get the
container.id
field and associate it with container metadata. Is it possible to add similar functionality to this component?Describe the solution you'd like
Add detector to get
contianer.id
If a container runtime API is mounted, e.g.docker.sock
, associate the information directly. Otherwise we can provide another component likek8sattributes processor
that runs on the host and forwards the data and adds container metadata.Describe alternatives you've considered
No response
Additional context
No response