[processor/resourcedetection] Container env OTEL_RESOURCE_ATTRIBUTES not extracted when using pull receiver like prometheus, redis... #37473
Labels
processor/resourcedetection
Resource detection processor
question
Further information is requested
receiver/redis
Redis related issues
Component(s)
processor/resourcedetection
What happened?
Description
I would like to enrich resource attributes with environment variables defined in the containers using OTEL_RESOURCE_ATTRIBUTES variable
To achieve this, I used the resourcedetection processor.
The problem occurs only for pods detected by pull receivers. I have reproduced it with the Prometheus and Redis receivers.
The resource detection processor enriches Resource attributes with only system metadata and not env variables.**
Steps to Reproduce
I used a Pull receiver like redisreceiver or prometheusreceiver
processor resourcedetection
Expected Result
The objective is to enrich resource attributes with attributes that allow the execution of k8sattributes ( and the pod_association)
Actual Result
In the Resource Attributes, I can only get information related to the system, not the env
Collector version
0.115.1
Environment information
Environment
Kubernetes.
Version : Chart Helm opentelemetry-collector-0.111.1
app Version : 0.115.1
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: