NVIDIA DOCA™ HBN routing telemetry exports FRRouting (FRR) operational metrics from the HBN container to the NVIDIA® BlueField® DOCA Telemetry Service (DTS). You can use these metrics to monitor BGP peer state and IPv4 and IPv6 route counts without scraping HBN container logs.
HBN routing telemetry uses the following data path:
-
FRR provides operational data for the configured YANG subscription paths.
-
The Routing Telemetry Service (routing-telemetry) converts the FRR data to OpenTelemetry Protocol (OTLP) metrics.
-
The HBN telemetry collector (telemetryd) sends the metrics to DTS over local DOCA IPC.
-
DTS exports the metrics through its configured exporter.
Before You Begin
Make sure that your deployment meets these requirements:
-
NVIDIA DOCA HBN 3.6.0 or later is running.
-
The BlueField software image includes DOCA SDK 3.3.0 or later.
-
doca-telemetry-serviceis deployed and running on the BlueField DPU. -
The HBN deployment includes the DTS IPC socket and shared-memory mount supplied with the HBN release.
-
DTC IPC socket path in the HBN container -
/run/doca/ipc_sockets -
Shared-memory mount path in the HBN container -
/dev/shm
-
-
You can access the HBN container as a user that can modify files under
/etc/frrand manage services withsupervisorctl. -
DTS has an exporter configured for the required destination. For exporter configuration, refer to the DOCA Telemetry Service Guide.
HBN 3.6.0 supports routing metrics from FRR. It does not provide HBN telemetry configuration through NVUE. Configure routing telemetry with the files described on this page.
Supported Metrics
The supported FRR metrics list can be found at https://docs.nvidia.com/networking-ethernet-software/cumulus-linux/Monitoring-and-Troubleshooting/Open-Telemetry-Export/#routing-metrics-format
Configure Routing Telemetry (RTS)
The configuration is stored in /etc/frr/frr_telemetry.yaml.
Review the Collector Port
The RTS destination port must match the HBN telemetry collector listen port. Before changing the RTS configuration, inspect the installed collector configuration and record its otelc_listen_port value:
sudo grep '^otelc_listen_port:' /etc/telemetry/hbn-telemetryd.conf
Do not change the collector port for normal operation. If your deployment requires a nondefault port, configure the same port in both the collector and RTS configuration files.
Configure the Subscription Paths
Edit /etc/frr/frr_telemetry.yaml. The following example collects the complete BGP peer and Zebra RIB metric families every 30 seconds from FRR.
tele:
vrf_id: default
otelc_port: "4200"
paths:
- path: "/frr-bgp-peer:lib"
mode: stream
stream-mode: sample
sample-interval: 30s
- path: "/frr-zebra:lib"
mode: stream
stream-mode: sample
sample-interval: 30s
The configuration fields have the following meanings:
|
Field |
Description |
|---|---|
|
|
VRF that RTS uses for its local connection to the HBN telemetry collector. Use |
|
|
Local OTLP destination port. This value must match |
|
|
FRR-native YANG paths to subscribe to. |
|
|
Subscription mode. Use |
|
|
Stream behavior. Use |
|
|
Interval between samples for the path. |
You can subscribe to a complete metric family or a narrower leaf path. For example:
paths:
0 path: "/frr-bgp-peer:lib/vrf/peer/total-msgs-recvd"
mode: stream
stream-mode: sample
sample-interval: 30s
A shorter sample interval increases FRR, RTS, collector, and DTS processing load. Validate resource usage before using an interval shorter than 30 seconds in production.
You can inspect the actual operational trees with (Run in vtysh, when the relevant daemon is up and running):
show yang operational-data /frr-bgp-peer:lib bgpd
show yang operational-data /frr-zebra:lib zebra
Apply the Configuration
RTS reloads /etc/frr/frr_telemetry.yaml when it receives SIGHUP.
Send SIGHUP to the RTS program:
sudo supervisorctl signal HUP routing-telemetry
Make the Configuration Persistent Across Container Restarts
Edit the configuration file on the DPU at /var/lib/hbn/etc/frr/frr_telemetry.yaml. Note that the edit will take affect only after a container restart.
Logs
The RTS logs are at /var/log/frr/frr_telemetry.log
HBN Telemetry Collector (telemetryd)
The configuration is stored in /etc/telemetry/hbn-telemetryd.conf.
Configure
Edit /etc/telemetry/hbn-telemetryd.conf.
# HBN Telemetry Daemon configuration (YAML)
#
# Parsing is lenient: `#` comments (whole-line or inline) are allowed,
# unknown keys are ignored, and any absent key keeps its built-in default.
# All numeric values are non-negative integers.
# TCP port the OpenTelemetry collector endpoint listens on.
otelc_listen_port: 4200
# Interval between DTS reconnect attempts, in minutes.
dts_reconnect_timeout: 1
# Directory holding the DTS IPC sockets.
dts_ipc_sockets_path: /run/doca/ipc_sockets
# Log level for the daemon.
log_level: info
The configuration fields have the following meanings:
|
Field |
Description |
|---|---|
|
|
TCP port the OpenTelemetry collector endpoint listens on to connection from RTS. |
|
|
Interval between reconnect attempts to the DTS container, in minutes. |
|
|
Directory holding the DTS IPC sockets. |
|
|
Log level for the daemon. Can be one of |
Apply the Configuration
The collector reloads /etc/telemetry/hbn-telemetryd.conf when it receives SIGHUP.
Send SIGHUP to the telemetryd program:
sudo supervisorctl signal HUP telemetryd
Make the Configuration Persistent Across Container Restarts
Edit the configuration file on the DPU at /var/lib/hbn/etc/telemetry/hbn-telemetryd.conf. Note that the edit will take affect only after a container restart.
Logs
The Collector logs are at /var/log/hbn/hbn-telemetryd.log
Troubleshoot Telemetry
No HBN Routing Metrics Appear in DTS
-
Wait at least one configured sampling interval.
-
Confirm that FRR, RTS, and HBN Telemetry Collector report
RUNNINGinsupervisorctl status. -
Confirm that the Zebra and/or BGPD daemons are running and listening to a connection from RTS.
Bashnetstat -autpen | grep -E 'zebra|bgpd' # zebra should listen on port 4223 (if active) # bgpd should listen on port 4222 (if active) -
Confirm that
otelc_portin/etc/frr/frr_telemetry.yamlmatchesotelc_listen_portin the collector configuration. -
Confirm that the collector is listening on the configured port.
-
Check the RTS log for YAML parsing or subscription errors:
sudo tail -n 100 /var/log/frr/frr_telemetry.log -
Check the collector logs under
/var/log/hbn/hbn-telemetryd.logfor configuration, port binding, or DTS IPC errors. -
On BlueField, verify that
doca-telemetry-serviceis running and inspect its logs:sudo crictl ps | grep doca-telemetry-service sudo crictl logs <dts-container-id> -
Try to restart the
doca-telemetry-servicecontainer.
Only One Metric Family Is Present
Review paths in /etc/frr/frr_telemetry.yaml.
-
/frr-bgp-peer:libenables the BGP peer metric family. -
/frr-zebra:libenables the Zebra RIB metric family.
After correcting the paths, reload or restart RTS and wait one sampling interval.
Metrics Appear in DTS but Not at the External Destination
The HBN-to-DTS data path is operational. Inspect the DTS exporter configuration and DTS logs. Confirm the destination address, transport, credentials, certificates, and network reachability. Refer to the DOCA Telemetry Service Guide.
Metrics Stop After an FRR Restart
RTS normally detects an FRR daemon restart and restores its subscriptions automatically. Wait one sampling interval. If metrics do not resume, inspect /var/log/frr/frr_telemetry.log and restart the affected FRR service or RTS.
Known Issues
DTS FD Limit Reached
DTS deployments with many sampled devices, multiple providers, or an unusually large number of platform files may exceed the container runtime’s default RLIMIT_NOFILE limit. Configure an adequate limit for the container runtime.
# On the DPU
# Validate the soft limit (first value) of the DTS container.
cat /proc/$(pgrep -x clx)/limits | grep 'Max open files'
# Check how many FDs are in use
echo "total=$(ls /proc/$(pgrep -x clx)/fd|wc -l)"
In case the limit was reached:
-
Open
/opt/mellanox/doca/services/telemetry/config/clx_config.inion the DPU -
Add/change
nofile-limit=8192or any other value that is appropriate for you environment. -
Restart the DTS container
Last updated: