Datadog Agent Destinations and Ports - Designing Firewall Openings
Agent traffic is centered on HTTPS going from the Agent to Datadog, and Datadog never initiates connections to you. The entries in your allowlist are determined by the data you send and the products you use, and the listeners inside the host are treated as ports to keep closed from the outside.
Separate outgoing traffic from traffic received inside the host
A firewall request keeps its table tidy if you first split the traffic into two directions before writing it. The first is traffic going out from the Agent to Datadog: only the Agent side initiates connections, and Datadog never opens connections toward you. Outgoing traffic is encrypted with SSL, and most of it converges on TCP port 443 (as of October 2026; source: Network Traffic). The second is traffic the Agent receives inside the host, the paths by which applications send metrics through DogStatsD and tracers hand over spans. These are not ports to open but ports to keep closed so they cannot be reached from outside. Installation alone requires different destinations: add install.datadoghq.com / yum.datadoghq.com / keys.datadoghq.com / apt.datadoghq.com / windows-agent.datadoghq.com to the allowlist.
Destinations are different hostnames for each type of data
For outbound destinations, the prefix of the hostname changes with each type of data, and the suffix is the domain of your organization's Datadog site. The table below is an example for an organization on app.datadoghq.com; for an EU organization, read the trailing datadoghq.com as datadoghq.eu. Most ports are TCP 443, but NTP for time synchronization uses UDP 123, and organizations on US1 and EU also get entries for TCP 8443 and TCP 8042.
| What is sent | Destination | Port | Notes |
|---|---|---|---|
| Metrics / service checks / events | The form 7-31-0-app.agent.datadoghq.com | TCP 443 | The Agent version number goes at the front |
| Flare (diagnostic information for support) | The form 7-31-0-flare.agent.datadoghq.com | TCP 443 | Likewise includes the version number |
| APM | trace.agent.datadoghq.com | TCP 443 | Destinations starting with instrumentation-telemetry-intake. are also used |
| Processes / Live Containers | process.datadoghq.com | TCP 443 | Cloud Network Monitoring uses the same destination |
| Orchestrator | orchestrator.datadoghq.com | TCP 443 | Kubernetes resource information. contlcycle-intake. is also used |
| Remote Configuration | config.datadoghq.com | TCP 443 | Receiving configuration |
| API | api.datadoghq.com | TCP 443 | Features not required for collection, such as displaying whether the API key is valid |
| Logs | The site-specific HTTP intake (logs endpoints) | TCP 443 | Sending over TCP is not recommended, and delivery is not guaranteed |
| NTP (time synchronization) | The default NTP destinations | UDP 123 | Regardless of site |
| Custom Agent Autoscaling | No destination name listed in the port table of the official documentation | TCP 8443 | Only for organizations on US1 and EU |
| Remote Configuration connectivity check | No destination name listed in the port table of the official documentation | TCP 8042 | Only for organizations on US1 and EU. Contains no customer data |
The first stumbling block in an allowlist is that the metrics destination contains the version number. An Agent at v7.31.0 sends to 7-31-0-app.agent.datadoghq.com, so an allowlist that spells out hostnames one by one breaks every time you upgrade. This is why the official documentation asks you to put a wildcard starting with *.agent. into the allowlist. Another point: Agents from 7.67.0 onward query names in a form with a trailing dot (trace.agent.datadoghq.com.). Check whether devices that allow traffic by name also pass this form; if they do not, from 7.72.0 onward you can set convert_dd_site_fqdn.enabled to false to return to the original form.
| Product | Destination prefix |
|---|---|
| Database Monitoring | dbm-metrics-intake. / dbquery-intake. |
| Network Device Monitoring | ndm-intake. / snmp-traps-intake. / ndmflow-intake. |
| Network Path | netpath-intake. |
| Cloud Security vulnerabilities (SBOM) | sbom-intake. |
| Container images | contimage-intake. |
| Profiling | intake.profile. |
| LLM Observability | llmobs-intake. |
Add these only to the allowlist for hosts that use the product. The two Database Monitoring destinations are ones the official documentation notes are for organizations on US1 / EU / US3 / US5 / AP1 / AP2 / UK1.
Write allow rules by name, and if you filter by IP, track ip-ranges
Every destination domain is a CNAME, which points to a fixed set of IP addresses. For devices that can only express allow rules by IP, Datadog publishes the ranges as JSON at a URL formed by appending the site domain to https://ip-ranges.; for an organization on app.datadoghq.com, it is ip-ranges.datadoghq.com. The content is divided into sections by purpose, and each section can also be retrieved from its own URL (/apm.json or /logs.json).
- version: A number that increases each time the content changes. Decide whether to import changes by looking at this
- modified: The time of the last change
- agents / api / apm / logs / process / orchestrator / remote-configuration: Ranges the Agent sends to (IPv4 and IPv6 CIDRs)
- synthetics / synthetics-private-locations / webhooks: Ranges the Agent does not use. Other purposes, such as the sources of synthetic monitoring and webhooks
The official documentation asks you to allow all of the ranges, because even if only some are in use at a given moment, the contents of the set are swapped during normal operation and maintenance. In other words, allowing by IP is not something you write once and forget; the deciding factor is whether you can have a mechanism that imports the changes when version increases. If you have devices that can allow by name, writing hostnames and listing the *.agent. wildcard alongside the remaining destinations eliminates the work of fixing the table for version upgrades and IP changes.
Ports opened inside the host can be moved with configuration keys
Ports on the receiving side are the openings through which Agent components talk to each other and to applications within the same host. The official documentation warns that these should be restricted to trusted senders only; if they are reachable from outside, others can write traces and metrics into your organization or read configuration and service information. When a default port collides with an existing service, change it with a key in datadog.yaml or an environment variable.
| Purpose | Default | Key to change it (datadog.yaml / environment variable) |
|---|---|---|
| DogStatsD | UDP 8125 | dogstatsd_port / DD_DOGSTATSD_PORT |
| APM receiver (traces and profiler) | TCP 8126 | receiver_port / DD_APM_RECEIVER_PORT (0 disables the HTTP receiver) |
| IPC API | TCP 5001 | cmd_port / DD_CMD_PORT |
| go_expvar integration server | TCP 5000 | expvar_port / DD_EXPVAR_PORT |
| go_expvar server for APM | TCP 5012 | - |
| Browser GUI | TCP 5002 (Windows / macOS) | GUI_port / DD_GUI_PORT (the Linux default is -1 = disabled) |
| Process Agent debugging / runtime configuration | TCP 6062 / 6162 | - |
| OTLP receiver (only when enabled) | gRPC 4317 / HTTP 4318 | DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT / DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT |
By default, DogStatsD listens only on IPv4 127.0.0.1; to have other hosts or containers send to it, set dogstatsd_non_local_traffic to true. The OTLP receiver is disabled by default, and even when you enable it, setting the listening address to localhost keeps it from being opened to the outside. The configuration examples in the official documentation use 0.0.0.0 for convenience, but note that localhost is safer when running on a host. How to send through DogStatsD itself is summarized in the glossary entry for DogStatsD.
Networks that cannot go out directly route through a proxy or PrivateLink
When a corporate network cannot reach the internet directly, the candidate is a proxy; where to place it and how to write exclusions are left to the glossary entry for Proxy. If you run the Agent inside AWS, another route is AWS PrivateLink. You create an internal endpoint in your own VPC, make it the Agent's destination, and connect it to the endpoint in Datadog's VPC (as of October 2026; source: Connect to Datadog over AWS PrivateLink).
| Item | What the official documentation says |
|---|---|
| Supported sites | app.datadoghq.com / ap1.datadoghq.com / ap2.datadoghq.com / uk1.datadoghq.com |
| Unsupported sites | us3.datadoghq.com / us5.datadoghq.com / app.datadoghq.eu / app.ddog-gov.com / us2.ddog-gov.com |
| Unit of endpoints | One per type of data (logs / API / metrics / containers / processes / profiling / traces / Database Monitoring / Remote Configuration) |
| DNS | Enable DNS names when creating the endpoint |
| From another region | Cross-region PrivateLink is recommended |
The key point of the table is that PrivateLink uses a separate endpoint for each type of data. If you create only the metrics endpoint and forget the trace endpoint, traces try to go out over the original route, so they do not arrive on a closed network. With DNS names enabled, the endpoints look like the same hostnames to the Agent, so you do not need to rewrite the destinations in datadog.yaml. Knowing how the Agent behaves when the network is temporarily cut off also speeds up troubleshooting: the Agent first buffers metrics in memory and discards whatever exceeds the limit. From 7.27.0 onward, putting a positive value in forwarder_storage_max_size_in_bytes also lets it spill to disk (source: Network Traffic).
In containers and Kubernetes, hostPort and UNIX sockets become the listeners
When you run the Agent in a container, the ports it listened on inside the host are enclosed inside the container, so you prepare a separate path for applications to reach it. Because DogStatsD listens on UDP 8125, the Agent container binds this port to a host port, and to receive metrics coming from somewhere other than localhost, set DD_DOGSTATSD_NON_LOCAL_TRAFFIC to true (as of October 2026; source: DogStatsD). On Kubernetes, the defaults differ by installation method: the Datadog Operator has reception over UNIX domain sockets enabled by default, and to also receive over UDP you add features.dogstatsd.hostPortConfig.enabled. In Helm values, set dogstatsd.useHostPort and dogstatsd.nonLocalTraffic to true.
- UNIX domain socket: Does not open a port outside the node. Applications point to the socket location with DD_DOGSTATSD_SOCKET
- hostPort: Opens a port on the node. Assumes a network provider that follows the CNI specification (Calico / Canal / Flannel, etc.). Applications point to the Agent by putting status.hostIP in DD_AGENT_HOST
- hostNetwork: The alternative when the network plugin does not support hostPort
Because hostPort opens the node's port itself, the official documentation again warns you to restrict senders with a firewall here as well. Since it avoids opening a port outside the node, the UNIX socket, which is self-contained within the same node, keeps the firewall table smaller. The full set of chart values is covered in Deploying to Kubernetes with Helm, and how to bind ports when running a single container is covered in Configuring the Agent with Docker.
When data does not arrive, start from the Agent's report and consolidate the allow table into one sheet
When data does not arrive even though you have written the allow rules, look at the Agent's own report before the logs of your network devices. How to read the status output is left to the explanation of the Datadog Agent; what we use here is the diagnose subcommand, which runs connectivity diagnostics, and the form that has an Agent inside a container produce the same report. On Docker, docker exec -it CONTAINER_NAME agent status, and on Kubernetes, kubectl exec -it POD_NAME -- agent status serve the same role (as of October 2026; source: Agent Commands). By separating whether only metrics have stopped or traces and logs as well, you can narrow it down to which entry in the destination table is missing.
- List the features you use (metrics / APM / logs / processes / Remote Configuration, etc.)
- For each feature, pick the entries from the destination table and add the *.agent. wildcard
- For devices that cannot be written by name, import the relevant sections of ip-ranges and set up a mechanism that picks up changes in version
- Confirm that the listeners inside the host (8125 / 8126, etc.) cannot be reached from outside
If you take the next step, check which features are enabled in your own Agent's status output and create a single allow table that picks up only the entries for those features. Opening destinations even for features you do not use adds to the explanation in your request, while missing a feature you do use leaves you in a state where only part of the data arrives right after installation. The full range of problems that come up right after installation is covered in Installing the Agent on Linux.