-
Notifications
You must be signed in to change notification settings - Fork 31
APM Trace agent doesn't use http proxy configuration for reporting #245
Comments
Hi @jeremyolliver . The trace agent does not support reporting through a proxy in the way that the infra agent does, so your settings in |
No - the application servers I'm monitoring are not permitted outbound on port 80, and 443 (hence the i/o timeout error - this network access is intentionally blocked). To make any outbound http calls at all, they are required to connect through an internal http proxy server, which itself will forward on the http(s) request. I'm not having any issues with the datadog-agent reporting host and integration metrics - but as mentioned the trace-agent appears to send it's own metrics rather than pass them through the same mechanism used there. |
AFAIK we do not override the standard Go |
Yea echoing @ufoot 's point, @jeremyolliver is it feasible for you to set the following env vars on your hosts running the trace-agent?
this should workaround the problem while we address the underlying issue of not reading proxy settings from |
when [proxy settings](https://github.com/DataDog/dd-agent/blob/master/datadog.conf.example#L7-L10) are defined in datadog.conf update the default client in the writer to submit to a proxy. fixes #245
fixed in PR #251 and will be released very shortly |
@talwai It seems the proxy environment variables are set and I can even see them under the dd-agent user is there possibly some kind of other problem causing the error @jeremyolliver reported? |
hmm @whithajess that's unexpected - i'd expect the env vars to do the trick, if they're indeed available to the running process. is your error identical to the one above? can you paste a snippet of |
Yes sorry for clarification I work with Jeremy so it is identical to above. |
I wrote a test go script using |
Hi @whithajess @jeremyolliver thanks for working through this. |
I'm attempting to use APM in an environment that restricts outbound http unless through an http proxy, and from what I can tell this agent is not supporting the http proxy config (or I'm missing the correct place to put it).
I do have at present (
proxy_host
,proxy_port
,proxy_user
,proxy_password
) set inside/etc/dd-agent/datadog.conf
and have restarted the datadog-agent.I see the following in my logs:
The text was updated successfully, but these errors were encountered: