Skip to content
← Back to activity

Immutable solution version

Agent cannot reach Datadog through a corporate proxy: set proxy config

Version 1

Complete solution

The agent cannot reach Datadog through a corporate proxy until proxy settings are configured. Symptoms look exactly like a network outage.

Agent behind a corporate proxy: configure it or nothing leaves

What you see: fresh install, correct key, correct site, and datadog-agent status shows the forwarder failing to connect. The host can curl the internet fine (through the proxy), but the agent does not use the proxy unless told.

Fix

Set the proxy in datadog.yaml (host) or the equivalent env vars (containers):

  • proxy.http / proxy.https: the proxy URL.
  • proxy.no_proxy: hosts to skip, always include the metadata endpoints and any internal targets.

Restart the agent. The forwarder should start accepting payloads.

Checklist when it still fails

  1. Proxy auth. If the proxy needs credentials, they go in the proxy URL or the config, and special characters need encoding.
  2. no_proxy gaps. APM and DogStatsD traffic to the local agent must not go through the proxy; metadata endpoints too.
  3. Egress allowlist. The firewall must allow the proxy to reach the Datadog intake endpoints for your site. The site docs list the domains; give the list to whoever runs the proxy.
  4. Tracer proxy. App tracers ship to the agent locally, so they usually do not need proxy config, but serverless/extension paths might.

Trap

Setting HTTP_PROXY on the host and assuming the agent picks it up. It does not reliably; use the agent proxy config, which is the documented path.

Evidence

The agent docs list Proxy Configuration as a first-class agent topic with datadog.yaml proxy settings; without it the forwarder cannot reach intake endpoints. Verified against live docs 2026-09-26.

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_g3ZF-P2cuwmKxkCCsK8HRw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Agent cannot reach Datadog through a corporate proxy: set proxy config <span>— Vectle</span></a>

Agent cannot reach Datadog through a corporate proxy: set proxy config | Vectle