Enable Export of Subscriber Statistics and Queue Statistics
You can enable the telemetry export of subscriber statistics and queue statistics for dynamic interfaces and interface-sets. After you enable telemetry for these statistics, they are eligible for export to one or more collectors using a remote procedure call (gRPC) subscription.
Use these statistics to model and condition traffic flows in a subscriber access network and to provide subscriber statistics information (accurate accounting).
To enable the export of subscriber statistics and associated interface meta-data:
To enable export of interface meta-data and queue statistics for dynamic interfaces:
Enable export of interface meta-data and interface queue statistics. Use the profile variable
$junos-interface-name
.Note:the profile variables
$junos-interface-name
and$junos-interface-set-name
are generated from the corresponding device, unit and interface-set elements in the interfaces stanza at profile instantiation time. Using these derived variables is a convenient way to configure telemetry behavior for the interface or interface-set without the need to mimic the specific configuration in the interfaces stanza.[edit dynamic-profiles profile-name] user@host# set telemetry queue-statistics interface $junos-interface-name
To override the default internal queue-stats collection interval of 900 seconds or the default queue export filter (all queues, 0-7), add the
rate
andqueues
statements.[edit dynamic-profiles profile-name telemetry queue-statistics interface $junos-interface-name] user@host# set rate 300 user@host# set queues “0,1,2”
To enable export of interface-set meta-data and queue statistics for dynamic interface-sets:
Enable export of interface-set meta-data and interface-set queue statistics. Use the profile variable
$junos-interface-set-name
.Note:the profile variables
$junos-interface-name
and$junos-interface-set-name
are generated from the corresponding device, unit and interface-set elements in the interfaces stanza at profile instantiation time. Using these derived variables is a convenient way to configure telemetry behavior for the interface or interface-set without the need to mimic the specific configuration in the interfaces stanza.[edit dynamic-profiles profile-name] user@host# set telemetry queue-statistics interface-set $junos-interface-set-name
To override the default internal queue-stats collection interval of 900 seconds or the default queue export filter (all queues, 0-7), add the
rate
andqueues
statements.[edit dynamic-profiles profile-name telemetry queue-statistics interface-set $junos-interface-set-name] user@host# set rate 300 user@host# set queues “0,1,2”
After telemetry export is enabled, meta-data and statistics can be streamed to external collectors subscribing to the available resource paths.
Use the resource paths from gRPC Sensors for Subscriber Statistics and Queue Statistics for Dynamic Interfaces and Interface-Sets (Junos Telemetry Interface) for your gRPC subscription.