Networking DOCA SDK Documentation

Telemetry

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:

  1. FRR provides operational data for the configured YANG subscription paths.

  2. The Routing Telemetry Service (routing-telemetry) converts the FRR data to OpenTelemetry Protocol (OTLP) metrics.

  3. The HBN telemetry collector (telemetryd) sends the metrics to DTS over local DOCA IPC.

  4. DTS exports the metrics through its configured exporter.

image-20261012-054135.png

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-service is 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/frr and manage services with supervisorctl.

  • 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_id

VRF that RTS uses for its local connection to the HBN telemetry collector. Use default for the standard HBN deployment.

otelc_port

Local OTLP destination port. This value must match otelc_listen_port in the collector configuration.

paths

FRR-native YANG paths to subscribe to.

mode

Subscription mode. Use stream for periodic metrics.

stream-mode

Stream behavior. Use sample to publish at a fixed interval.

sample-interval

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

otelc_listen_port

TCP port the OpenTelemetry collector endpoint listens on to connection from RTS.

dts_reconnect_timeout

Interval between reconnect attempts to the DTS container, in minutes.

dts_ipc_sockets_path

Directory holding the DTS IPC sockets.

log_level

Log level for the daemon. Can be one of `error`, `warning`, `info`, `debug`

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

  1. Wait at least one configured sampling interval.

  2. Confirm that FRR, RTS, and HBN Telemetry Collector report RUNNING in supervisorctl status.

  3. Confirm that the Zebra and/or BGPD daemons are running and listening to a connection from RTS.

    Bash
    netstat -autpen | grep -E 'zebra|bgpd'
    # zebra should listen on port 4223 (if active)
    # bgpd should listen on port 4222 (if active)
    
  4. Confirm that otelc_port in /etc/frr/frr_telemetry.yaml matches otelc_listen_port in the collector configuration.

  5. Confirm that the collector is listening on the configured port.

  6. Check the RTS log for YAML parsing or subscription errors:

    sudo tail -n 100 /var/log/frr/frr_telemetry.log
    
  7. Check the collector logs under /var/log/hbn/hbn-telemetryd.log for configuration, port binding, or DTS IPC errors.

  8. On BlueField, verify that doca-telemetry-service is running and inspect its logs:

    sudo crictl ps | grep doca-telemetry-service
     sudo crictl logs <dts-container-id>
    
  9. Try to restart the doca-telemetry-service container.

Only One Metric Family Is Present

Review paths in /etc/frr/frr_telemetry.yaml.

  • /frr-bgp-peer:lib enables the BGP peer metric family.

  • /frr-zebra:lib enables 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:

  1. Open /opt/mellanox/doca/services/telemetry/config/clx_config.ini on the DPU

  2. Add/change nofile-limit=8192or any other value that is appropriate for you environment.

  3. Restart the DTS container


Last updated: