kuma-dp reads OTEL_EXPORTER_OTLP_* variables at startup and merges them with this
resource’s fields. Values that carry secrets (headers, client keys, certificates) stay local
to kuma-dp: at bootstrap it reports only which variable keys are present to the control
plane, never their values.
The shared variables are:
OTEL_EXPORTER_OTLP_ENDPOINT
_PROTOCOL
_HEADERS
_INSECURE
_TIMEOUT
_COMPRESSION
_CERTIFICATE
_CLIENT_KEY
_CLIENT_CERTIFICATE.
Each also has a per-signal form (OTEL_EXPORTER_OTLP_TRACES_*, _METRICS_* and _LOGS_*) which
overrides the shared value for that signal.
For each field, the first available source wins. By default, the proxy resolves configuration
in this order:
- The per-signal environment variable, when
allowSignalOverrides is true
- The shared environment variable
- The field on this resource
- The built-in default
spec.env changes that:
|
Field
|
Values
|
mode
|
Optional, the default, uses environment variables when present and tolerates their absence
Disabled skips them entirely, leaving only this resource’s fields and the built-in defaults
Required blocks the signal when the variables don’t supply the missing fields, even where an explicit value or default could have filled them
|
precedence
|
EnvFirst, the default, lets environment variables win and this resource’s fields fill the gaps
ExplicitFirst reverses that, and built-in defaults are the last fallback either way
|
allowSignalOverrides
|
true, the default, lets per-signal variables diverge from the shared ones
false ignores the per-signal variables and applies the shared values to every signal
|
Required is for making missing input fail loudly: the signal blocks, RequiredEnvMissing
appears in the status, and the absence of exported data becomes something to alert on.
kuma-dp reads environment variable values only when it restarts and re-bootstraps, and the
status picks them up at the same time.
OpenTelemetry environment variables are process-global, so when a proxy resolves more than one
backend for the same signal and both allow environment input, there is no way to tell which
backend the values belong to. The control plane marks that signal ambiguous and drops the
environment input for it; this resource’s explicit fields still apply.
Plan one backend per signal per proxy, or set mode: Disabled on the backends that should never
take environment input.