Datadog Cloud Network Monitoring (CNM) gives you visibility into your network traffic between services, containers, availability zones, and any other tag in Datadog so you can:
Pinpoint unexpected or latent service dependencies.
Optimize costly cross-regional or multi-cloud communication.
Identify outages of cloud provider regions and third-party tools.
Troubleshoot faulty service discovery with DNS server metrics.
Cloud Network Monitoring requires Datadog Agent v6.14+. Because metrics are automatically collected in higher versions of the Agent, see the metrics setup section to configure DNS Monitoring.
Data collection is done using eBPF, so Datadog minimally requires platforms that have underlying Linux kernel versions of 4.4.0+ or have eBPF features backported. CNM supports the following Linux distributions:
Ubuntu 16.04+
Debian 9+
Fedora 26+
SUSE 15+
Amazon AMI 2016.03+
Amazon Linux 2
CentOS/RHEL 7.6+
Note: There is an exception to the 4.4.0+ kernel requirement for CentOS/RHEL 7.6+. The DNS Resolution feature is not supported on CentOS/RHEL 7.6.
Data collection is done using a network kernel device driver. Support is available as of Datadog Agent version 7.27.1, for Windows versions 2012 R2 (and equivalent desktop OSs, including Windows 10) and up.
CNM helps you visualize the architecture and performance of your containerized and orchestrated environments, with support for Docker, Kubernetes, ECS, and other container technologies. Datadog’s container integrations enable you to aggregate traffic by meaningful entities–such as containers, tasks, pods, clusters, and deployments–with out-of-the-box tags such as container_name, task_name, and kube_service.
CNM is not supported for Google Kubernetes Engine (GKE) Autopilot.
Given this tool’s focus and strength is in analyzing traffic between network endpoints and mapping network dependencies, it is recommended to install it on a meaningful subset of your infrastructure and a minimum of 2 hosts to maximize value.
Edit /etc/datadog-agent/system-probe.yaml to set the enable flag to true:
network_config:# use system_probe_config for Agent's older than 7.24.1## @param enabled - boolean - optional - default: false## Set to true to enable Cloud Network Monitoring.#enabled:true
If you are running an Agent older than v6.18 or 7.18, manually start the system-probe and enable it to start on boot (since v6.18 and v7.18 the system-probe starts automatically when the Agent is started):
Note: If the systemctl command is not available on your system, start it with following command instead: sudo service datadog-agent-sysprobe start and then set it up to start on boot before datadog-agent starts.
On systems with SELinux enabled, the system-probe binary needs special permissions to use eBPF features.
The Datadog Agent RPM package for CentOS-based systems bundles an SELinux policy to grant these permissions to the system-probe binary.
If you need to use Cloud Network Monitoring on other systems with SELinux enabled, do the following:
Modify the base SELinux policy to match your SELinux configuration.
Depending on your system, some types or attributes may not exist (or have different names).
Compile the policy into a module; assuming your policy file is named system_probe_policy.te:
Note: these instructions require to have some SELinux utilities installed on the system (checkmodule, semodule, semodule_package, semanage and restorecon) that are available on most standard distributions (Ubuntu, Debian, RHEL, CentOS, SUSE). Check your distribution for details on how to install them.
If these utilities do not exist in your distribution, follow the same procedure but using the utilities provided by your distribution instead.
Data collection for Windows relies on a filter driver for collecting network data.
To enable Cloud Network Monitoring for Windows hosts:
Install the Datadog Agent (version 7.27.1 or above) with the network driver component enabled.
[DEPRECATED] (version 7.44 or below) During installation pass ADDLOCAL="MainApplication,NPM" to the msiexec command, or select “Cloud Network Monitoring” when running the Agent installation through the GUI.
Edit C:\ProgramData\Datadog\system-probe.yaml to set the enabled flag to true:
net /y stop datadogagent && net start datadogagent
Note: Cloud Network Monitoring monitors Windows hosts only, and not Windows containers.
To enable Cloud Network Monitoring with Kubernetes using Helm, add the following to your values.yaml file. Helm chart v2.4.39+ is required. For more information, see the Datadog Helm Chart documentation.
datadog:networkMonitoring:enabled:true
Note: If you receive a permissions error when configuring CNM on your Kubernetes environment: Error: error enabling protocol classifier: permission denied, add the following to your values.yaml (Reference this section in the Helm chart):
agents:podSecurity:apparmor:enabled:true
If you are not using Helm, you can enable Cloud Network Monitoring with Kubernetes from scratch:
Optional - Set your Datadog site. If you are using the Datadog EU site, set the DD_SITE environment variable to datadoghq.eu in the datadog-agent.yaml manifest.
For Kubernetes versions below 1.30, add the annotation container.apparmor.security.beta.kubernetes.io/system-probe: unconfined on the datadog-agent template:
Enable process collection and the system probe with the following environment variables in the Agent DaemonSet. If you are running a container per Agent process, add the following environment variables to the Process Agent container; otherwise, add them to the Agent container.
The Datadog Operator is Generally Available with the `1.0.0` version, and it reconciles the version `v2alpha1` of the DatadogAgent Custom Resource.
The Datadog Operator is a way to deploy the Datadog Agent on Kubernetes and OpenShift. It reports deployment status, health, and errors in its Custom Resource status, and it limits the risk of misconfiguration thanks to higher-level configuration options.
To enable Cloud Network Monitoring in Operator, use the following configuration:
Failed Connections allows collection and reporting of TCP failures including resets, refusals, and timeouts. This feature is enabled by default in Agent version 7.59+, and it is accessible on the CNM Analytics page in the Customize menu by turning on the Failures toggle.
Note: If some Agents in your infrastructure are running a version earlier than 7.59, you might encounter failures being under-reported. CNM advises maintaining the same Agent version across all hosts.