Streaming Telemetry

Configuration Template

telemetry model-driven
 destination-group {{ DG_NAME }}
  vrf {{ VRF_NAME }}
  address-family ipv4 {{ DST_IP }} port {{ DST_PORT ))
   encoding {{ TELEMETRY_ENCODING }}
   protocol {{ TELEMETRY_PROTOCOL }}
  !
 !
 sensor-group {{ SENSOR_NAME }}
  sensor-path {{ SENSOR_PATH }}
 !
 subscription {{ SUBSCRIPTION_NAME }}
  sensor-group-id {{ SENSOR_NAME }} sample-interval {{ SAMPLE_INTERVAL }}
  destination-id {{ DG_NAME }}
 !
!

Getting the Right YANG Model

The thing you do afterwords is not obvious:

Getting Sample Telemetry

Nobody knows it but you can get a sample telemetry output using CLI commands in IOS XR. Use run mdt_exec then specify a sensor path with -s key and define interval with -c key.

Another example:

metrics.json

Corresponding metrics.json

Telemetry Software Stack

Docker Network

InfluxDB

InfluxDB Logs

Telegraf

Grafana

Last updated