Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos Telemetry Interface User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Enable Export of Subscriber Statistics and Queue Statistics

date_range 23-Nov-23

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:

  1. Enable export of interface meta-data and subscriber statistics:
    content_copy zoom_out_map
    [edit dynamic-profiles profile-name]
    user@host# set telemetry subscriber-statistics
    
  2. Enable the logical demultiplexing (demux) interface in a dynamic profile to export subscriber accurate statistics:
    content_copy zoom_out_map
    [edit dynamic-profiles interfaces demux0]
    user@host# unit $junos-interface-unit actual-transit-statistics
    

To enable export of interface meta-data and queue statistics for dynamic interfaces:

  1. 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.

    content_copy zoom_out_map
    [edit dynamic-profiles profile-name]
    user@host# set telemetry queue-statistics interface $junos-interface-name 
    
  2. 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 and queues statements.

    content_copy zoom_out_map
    [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:

  1. 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.

    content_copy zoom_out_map
    [edit dynamic-profiles profile-name]
    user@host# set telemetry queue-statistics interface-set $junos-interface-set-name 
    
  2. 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 and queues statements.

    content_copy zoom_out_map
    [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.

footer-navigation