Configuring the Collection and Export of Local Telemetry Data on the IPFIX Mediator
You can configure the input-jti-ipfix plug-in for the IPFIX service agent to collect telemetry (gRPC) data from the local Junos Telemetry Interface (JTI) on a BNG configured as an IPFIX mediator. In addition to streaming IPFIX records from the input-ipfix plug-in, the output-ipfix plug-in also translates the gRPC data received from the input-jti-ipfix plug-into corresponding IPFIX data records.
You configure a record group for the input-jti-ipfix plug-in that consists of one or more predefined IPFIX records. Each predefined record is associated with a specific, nonconfigurable set of telemetry sensors on the BNG. You can configure the frequency at which the sensor records are exported to an IPFIX collector; the IPFIX collector is configured with the output-ipfix plug-in.
Before you begin, you must enable the IPFIX service agent by configuring at least one parameter for the input-ipfix plug-in.
To configure local telemetry data collection and reporting:
The following sample configuration includes three record groups for the telemetry input plug-in, high-frequency, baseline, and background:
The high-frequency group subscribers to the subscriber-statistics and port-statistics record. Because statistics data is dynamic and changes frequently, the reporting interval is set to five minutes, which is much less than the default.
The baseline record group subscribes to the address-pool-utilization and dhcpv4-server-statistics records; the reporting interval is left at the default value, 15 minutes.
The background record group subscribes to the thermal and chassis-inventory records. These probably do not change frequently, so the reporting interval is set to six hours.
To enable the IPFIX plug-in, you must configure at least one parameter; in this example, the maximum number of TCP connections is set to 200.
Finally, the IP address and listening port for the IPFIX collector is configured in the output plug-in.
[edit services analytics agent service-agents ipfix] inputs input-jti-ipfix { parameters { record-group high-frequency { record subscriber-statistics; record port-statistics; reporting-interval 300; } record-group baseline { record address-pool-utilization; record dhcpv4-server-statistics; } record-group background { record thermal; record chassis-inventory; reporting-interval 21600; } } } inputs input-ipfix { parameters { maximum-connections 200; } } outputs output-ipfix { parameters { collector-address 192.0.2.2; collector-port 6589; } } }
You can use the show services analytics agent command to display information about the service agents.