Extend network monitoring with network traffic metrics in containerized Linux hosts.
With network metrics added to your containerized hosts, Davis® root cause analysis will leverage them and extend analysis to provide visibility into network-related issues. Extensive network traffic on particular nodes is a sign that you should consider scaling up the cluster.
NetTracer is an open source tool for tracing TCP events and collecting network connection metrics on Linux. It consists of two parts:
Advantages:
NetTracer defines an IPv4 and IPv6 TCP connection by source address and port, destination address and port, PID of the communicating process, and network namespace.
Using this TCP connection definition, it collects the following metrics:
By default, NetTracer is included as the binary oneagentnettracer
with every OneAgent installation, and it can be enabled via the Dynatrace web UI.
NetTracer officially supports Linux kernel versions 4.15 and higher, but other Dynatrace components that coexist with NetTracer on a particular host have specific requirements and are supported on particular Linux distributions. The following table lists the tested and safest Linux distributions to use when planning to use NetTracer with Dynatrace.
Distribution
Architecture
Release
RedHat Enterprise Linux
x86_64
8.0 and higher
CentOS
x86_64
8.0 and higher
Ubuntu
x86_64
18.04 LTS and higher
When enabled, OneAgent will use NetTracer to collect network data from containers, but only for Linux hosts.
To enable NetTracer on specific Linux host
To enable NetTracer globally on all your Linux hosts
Bytes received
Bytes receivedBytes transmitted
Bytes transmittedRetransmitted packets
Number of retransmitted packetsPackets received
Number of packets receivedPackets transmitted
Number of packets transmittedRetransmission
Percentage of retransmitted packetsRound trip time
Round trip time in milli seconds. Aggregates data from active sessionsNetwork traffic
Summary of incoming and outgoing network traffic in bits per secondIncoming traffic
Incoming network traffic in bits per secondOutgoing traffic
Outgoing network traffic in bits per secondThe following metrics available for NetTracer are calculated:
builtin:tech.nettracer.retr_percentage
(Retransmission)
Retransmission = retransmitted packets / (retransmitted packets + packets transmitted) × 100
builtin:tech.nettracer.traffic_rx
(Incoming traffic)
Incoming traffic = (sum of bytes received * 8) per second
builtin:tech.nettracer.traffic_tx
(Outgoing traffic)
Outgoing traffic = (sum of bytes transmitted:sum * 8) per second
builtin:tech.nettracer.traffic
(Network traffic)
Network traffic = ((sum of bytes received + sum of bytes transmitted) * 8) per second
Metric key
Dimension
Value
Unit
builtin:tech.nettracer.bytes_rx
dt.entity.process_group_instance
dt.entity.process_group
dt.entity.host
Gauge, where:
sum = number of bytes from all sessions in the given timeframe
avg/min/max = average/minimal/maximal bytes per session in the given timeframe
count = number of sessions in the given timeframe
Bytes
builtin:tech.nettracer.bytes_tx
dt.entity.process_group_instance
dt.entity.process_group
dt.entity.host
Gauge, where:
sum = number of bytes from all sessions in the given timeframe
avg/min/max = average/minimal/maximal bytes per session in the given timeframe
count = number of sessions in the given timeframe
Bytes
builtin:tech.nettracer.pkts_rx
dt.entity.process_group_instance
dt.entity.process_group
dt.entity.host
Count, sending deltas/resetting counter
Count
builtin:tech.nettracer.pkts_tx
dt.entity.process_group_instance
dt.entity.process_group
dt.entity.host
Count, sending deltas/resetting counter
Count
builtin:tech.nettracer.pkts_retr
dt.entity.process_group_instance
dt.entity.process_group
dt.entity.host
Count, sending deltas/resetting counter
Count
builtin:tech.nettracer.rtt
dt.entity.process_group_instance
dt.entity.process_group
dt.entity.host
Gauge
Miliseconds
If the process is running in a container, the following dimensions are added:
dt.entity.container_group_instance
dt.entity.container_group
Additional container dimensions are added depending on the deployment type.
Kubernetes
Docker (no Kubernetes)
container.image.name
(if it's available)
k8s.container.name
k8s.namespace.name
k8s.pod.name
k8s.pod.uid
container.image.name
container.name
After it's collected, NetTracer data is available as metrics throughout Dynatrace.
Data Explorer: You can use the metrics in Data Explorer to create charts and dashboards that display data that interests you.
Process group instance page: Go to process group instance page and select Networking tab.
Host overview: Go to host overview page and scroll down to the Network analysis section.
Networking and Network analysis sections contain NetTracer data combined with other network data analysed for this host. NetTracer gathers data for containerized processes, meanwhile Network Agent for native (i.e., non-containerized) processes.
ebpf
module.