Configure a Junos Telemetry Sensor
You can enable monitoring and streaming of data for various system resources, such as physical and logical interfaces and firewall filters using the Command Line Interface (CLI) commands. To monitor a specific system resource, you configure a sensor. Each sensor configuration requires three main components:
Sensor profile—Enables the system resource to monitor and allows you to set related parameters, such as the destination server to send data.
Export profile—Specifies the attributes for the process of exporting collected data, such as the transport protocol to use and the interval at which to collect data.
Streaming server profile—Specifies the server for collecting data and related parameters, including the destination IP address and port number.
We recommend that you configure at least one export profile and at least one streaming server before you configure a sensor profile. This way you can associate an export profile and a streaming server with the sensor profile configuration.
Before you begin:
Configure a connection from your Juniper Networks device to a server that is using in-band management interfaces.
Configure an Export Profile
An export profile defines the parameters of the export process of data generated through the Junos Telemetry mechanism. You must configure at least one export profile, you can also configure multiple export profiles. Each export profile can be associated with multiple sensor profiles. However, you can associate only one export profile with a specific sensor profile.
Platform-Specific Export Profile Behavior
Use Feature Explorer to confirm platform and release support for specific features.
Use the following table to review platform-specific behaviors for your platforms:
|
Platform |
Difference |
|---|---|
|
MX Series |
On MX Series routers you can specify a packet loss priority for
an export profile. As a result, you can apply the appropriate
packet loss priority to each sensor. Loss priority settings help
determine which packets are dropped from the network during
periods of congestion. Previously, you could specify only the
forwarding class and the DSCP value in an export profile. The
following packet loss priority settings are supported:
|
To configure an export profile:
Configure a Streaming Server Profile
A server profile defines the parameters of the server that collects exported telemetry data. You can define more than one server profile. You can also associate the same server profile with more than one sensor profile. You can associate more than one server with a specific sensor.
Guidelines for Streaming Telemetry Data Over UDP:
- Telemetry data streams directly from the source application to the collector over UDP. The configuration depends on the type of connection to the collector. The collector must be reachable over the management interface or a WAN interface.
- In the case of line card sensors, the line cards can directly export the data to the collector if the remote address is reachable over the WAN interface. If the telemetry data must be exported over the management interface for line card sensors, route the data to the Routing Engine and then send it to the collector.
To define the profile of a streaming server to collect exported telemetry data:
Configure a Sensor Profile
A sensor profile defines the parameters of the system resource to monitor and stream data. You can enable only one system resource to monitor for each sensor profile. Configure a different sensor profile for each system resource you want to monitor. You can, however, configure more than one sensor to monitor the same system resource. For example, consider configuring different parameters for exporting data from the same system resource.
To configure a sensor profile:
Verify the Junos Telemetry Interface Sensor Configuration
Purpose
Confirm your configuration.
Action
From configuration mode, confirm your configuration by entering the show
services analytics command. If your output does not display the
intended configuration, repeat the instructions in the configuration procedure
to correct it.
After you commit the configuration, verify that the sensor is enabled by issuing
the show agent sensors operational command.
The show agent sensors command output for gRPC sensors is
truncated on the Junos OS Evolved platform to align with the output format
of the Junos OS platform.
Verify the Junos Telemetry Interface Sensor Configuration
Purpose
Confirm your configuration.
Action
From configuration mode, confirm your configuration
by entering the show services analytics command. If your
output does not display the intended configuration, repeat the instructions
in this configuration procedure to correct the configuration.
After you commit the configuration, verify that the sensor is
enabled by issuing the show agent sensors operational command.
The show agent sensors command output for gRPC sensors is
truncated on the Junos OS Evolved platform to align with the output format
of the Junos OS platform.
View Dial-out Telemetry Statistics
Use the show services analytics dialout statistics command to
view the dial-out telemetry statistics.
For example:
user@host> show services analytics dialout statistics
Streaming Server Export Profile Source Address Destination Address Dialout Type Session Type Packets Sent Duration Begin Time
s2 e2 10.49.248.174:50955 10.49.248.165:5993 native-grpc-gpb Static 12338 8m 59s Tue Sep 09 00:21:54 2025 UTC
s3 N/A 10.49.248.174:54525 10.49.248.165:5995 native-grpc-gpb Dynamic 1486 9m 7s Tue Sep 09 00:21:47 2025 UTC
s1 e1 0.0.0.0:54554 10.49.248.165:5991 native-udp-gpb Static 5222 10m 57s Tue Sep 09 00:19:57 2025 UTC
user@host> Change History Table
Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.
dialout-type is introduced in the
export-profile command to configure the transport protocol
and the telemetry message format. The format and
transport options are deprecated.