Agent Proxy
Agent Proxy is the configuration that routes traffic from the Datadog Agent to Datadog through an HTTP / HTTPS proxy. It is used on hosts that cannot reach the internet directly, and is specified in the proxy section of datadog.yaml or with environment variables such as DD_PROXY_HTTPS.
Overview
You need proxy settings when the host running the Agent can only reach the outside through a corporate HTTP / HTTPS proxy. On corporate networks that restrict outbound traffic to a proxy, this is also the first setting you get stuck on right after installing the Agent. There are three places to put it: the proxy section of datadog.yaml, environment variables, and Helm / Operator on Kubernetes. You care about it when rolling out the Agent to a network with no direct egress, when you are unsure how to write the destinations that bypass the proxy (no_proxy), and when metrics arrive but only logs do not.
The outbound path for hosts with no direct internet access
The Agent proxy configuration is the setting that sends the Agent's traffic to Datadog through an HTTP / HTTPS proxy. The official docs describe it as the mechanism to use when sending from hosts that are not directly connected to the public internet (as of September 2026, Source: Datadog Agent Proxy Configuration). All Agent traffic is over SSL, and the destination varies by product and Datadog Site. Most data uses TCP port 443 (as of September 2026, Source: Network Traffic). Without this, you need a request to open an outbound hole for every host where the Agent is installed. With it, the only hole to open is the single proxy, and management of destination host names can be pushed to the proxy side. Which stage of the rollout to decide this at is left to the section "5 things to decide first" in the Linux installation article.
Three places to set it, and environment variables win
There are three places to specify it.
- Configuration file: write
http/https/no_proxyin theproxysection ofdatadog.yamland restart the Agent. - Environment variables: pass the same content with
DD_PROXY_HTTP/DD_PROXY_HTTPS/DD_PROXY_NO_PROXY. - Kubernetes: distribute the same environment variables to the Agent through Helm's
values.yamlor the Operator'sDatadogAgentresource.
The username and password are optional, and http and https can be specified either one or both depending on how the proxy is set up. Since most Datadog traffic is HTTPS, the https side is what actually takes effect (as of September 2026, Source: Datadog Agent Proxy Configuration). The rule that environment variables take precedence over the configuration file applies to the whole Agent and is summarized in the datadog.yaml glossary entry.
How far does no_proxy match
Destinations to connect to directly, bypassing the proxy, are listed in no_proxy. By default, HTTP(S) requests from the Agent itself are excluded only on an exact match with the destination, and only requests from integrations are matched with looser rules. The official docs recommend setting no_proxy_nonexact_match: true (as of September 2026, Source: Datadog Agent Proxy Configuration). This makes the whole Agent match with the same rules.
| Notation | What it matches |
|---|---|
Domain name (datadoghq.com). | That name and all of its subdomains. Does not match www.notdatadoghq.com. |
Domain with a leading dot (.datadoghq.com). | Subdomains only. Does not match datadoghq.com itself. |
CIDR range (192.168.1.0/24). | IP addresses within that subnet. |
| IP address or host name. | Exact match. |
If you forget to exclude an internal metadata service or a local exporter, it can show up as checks failing because they cannot be reached through the proxy.
Why logs are treated differently, and how the path looks
Metrics and traces are sent over HTTPS, so the https setting applies to them as is. Logs still have a deprecated legacy path that sends over TCP. If you use logs in a proxied environment, the official recommendation is force_use_http: true under logs_config (as of September 2026, Source: Datadog Agent Proxy Configuration). When metrics arrive but only logs do not, this setting is the first thing to suspect. The order of checks is left to the Linux installation article. Starting with Agent 7.67.0, to reduce the number of DNS lookups, the Agent sends to fully qualified names with a trailing dot at the end of the site name (as of September 2026, Source: Network Traffic). If the proxy's allow rules are name-based, check first whether this trailing-dot form passes. During installation, also allow distribution domains such as install.datadoghq.com.
Choosing a proxy product - Squid is recommended, HAProxy and NGINX are not
If you do not already have a proxy, the official docs recommend an HTTP proxy such as Squid. Forwarding through HAProxy or NGINX is not recommended, because you have to maintain by hand the list of endpoints the Agent must reach, and changes to that list lead to data loss. The exception is when you need DPI to inspect the traffic; in that case HAProxy or NGINX, which can handle TLS with your own certificates, become candidates (as of September 2026, Source: Datadog Agent Proxy Configuration). After configuring, verify with the Agent status command and connection errors in agent.log or trace-agent.log; if you hand it to support, it is all bundled in a flare. The steps on Windows are summarized in the Windows installation article.