-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datadog logs exporter doesn't adhere to standard http proxy variables #36292
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@fredjn This is a known limitation from our upstream dependency, for now you will want to set this config to your proxy url:
Or, you can disable the feature gate If you want support for the proxy env vars, please file a ticket on https://www.datadoghq.com/support |
cc @liustanley |
@songy23 your suggestion about setting the I added it under exporters like so:
|
@fredjn please try the alternative
And file a ticket on https://www.datadoghq.com/support so that our team can triage accordingly. |
Component(s)
exporter/datadog
What happened?
Description
When running the Collector in a network environment where a proxy is required to reach Datadog key verifications APIs the logs exporter fails to connect (and thus key verification fails). This happens even if standard proxy environment variables are set. The key verification for Metrics and Traces work fine.
Details
I traced the problem back to when the Datadog agent was introduced to handle the communication (v0.108.0?), and for unclear reasons it does not pick up the HTTP_PROXY, HTTPS_PROXY and NO_PROXY variables from the environment.
Steps to Reproduce
otel/opentelemetry-collector-contrib:0.112.0
container on a network where proxy is needed to reach the Datadog key verification APIs.Alternative method
otel/opentelemetry-collector-contrib:0.112.0
container on a network where no proxy is needed to reach the Datadog key verification APIs.Expected Result
All signal exporters (Trace, Metrics and Logs) should adhere to the HTTP_PROXY, HTTPS_PROXY and NO_PROXY environment variables.
Actual Result
Only Trace and Metrics signal exporters adhere to the HTTP_PROXY, HTTPS_PROXY and NO_PROXY environment variables.
Collector version
v0.112.0
Environment information
Environment
Docker container provided by the community via Dockerhub (
otel/opentelemetry-collector-contrib:0.112.0
) running with network where proxy is required to reach the Datadog key verification APIsOpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: