I'm running DataDog agents as a Daemonset and they are capable of collecting OTEL metrics, however I need the .Values.opentelemetry.collector.uri variable to refer to the node's IP address. If I use .Values.env to add the hostIP downward api variable it is lower in the env list and thus lower in precedence than .Values.opentelemetry.collector.uri. Unfortunately it doesn't get replaced when I set it like this:
Hello!
I'm running DataDog agents as a Daemonset and they are capable of collecting OTEL metrics, however I need the
.Values.opentelemetry.collector.uri
variable to refer to the node's IP address. If I use.Values.env
to add the hostIP downward api variable it is lower in the env list and thus lower in precedence than.Values.opentelemetry.collector.uri
. Unfortunately it doesn't get replaced when I set it like this:When I put the env var near the top of the list
$(HOST_IP)
gets substituted correctly.Relevant DataDog documentation:
I'm happy to put this behind a value for toggling if that's preferred.
Checklist
Fixes #