Finding the correct YANG model #2
Configure MDT using the solution from the first lab:
#XR1
telemetry model-driven
destination-group TIG
address-family ipv4 10.100.100.1 port 57500
encoding self-describing-gpb
protocol grpc no-tls
!
!
sensor-group SENSOR1
sensor-path Cisco-IOS-XR-infra-statsd-oper:infra-statistics/interfaces/interface/latest/generic-counters
!
subscription SUB1
sensor-group-id SENSOR1 sample-interval 5000
destination-id TIGConfigure a static delay value for Gi0/0/0/0.12 under performance-measurement. Add an additional sensor-path which exports the performance measurement delay for only this interface.
Answer
Explanation
This path is a bit easier to find. First I use yang-operational to find the YANG model that contains the show output for performance-measurement:

Next, I limit the output to only interface Gi0/0/0/0.12. This is very similar to limiting the output of the interface’s general statistics we saw in the “Filtering Data using XPATH” lab.
At this point, you can be done with the path. Optionally, you can continue drilling down onto just the minimum advertised value. I found this path by copying and pasting the output from run mdt_exec into python and using pprint.

Use the following Grafana query:
You should see the static value of 123:

Last updated