Dynamic Tunnel Statistics Support
Starting with Junos OS Release 17.4R1, you can export counter statistics for Packet Forwarding Engine dynamic tunnels to an outside collector using either native (UDP) or OpenConfig telemetry sensors through JTI.
The statistics are used to report various network element performance metrics in a scalable and efficient way, providing visibility into Packet Forwarding Engine errors and drops.
A timestamp indicating when the counters were last reset is included with all the exported data to allow collectors to determine if and when a reset event happened; for example, if the Packet Forwarding Engine hardware restarted.
Exported statistics are similar to the output of the operational mode command show
nhdb hw dynamic-ip-tunnels
.
To provision statistics export through gRPC, use the telemetrySubcribe RPC to create a subscription and specify telemetry parameters. Include the resource path /junos/services/ip-tunnel[name='tunnel-name']/usage/counters[name='counter-name']/ in the subscription.
Streaming telemetry data through gRPC also requires the OpenConfig for Junos OS module.
To configure export of statistics through UDP, include the sensor
/junos/services/ip-tunnel/usage/
in the sensor (Junos Telemetry Interface) configuration
statement at the [edit services analytics
] hierarchy level. All parameters
for UDP sensors are configured at that hierarchy level. MX80 and MX104 routers support only
UDP streaming. They do not support gRPC.