03-04-2020 08:31 AM
Hello All,
I'm interested to know if anyone is running telegraf with cisco_telemetry_gnmi plugin. I run into multiple issues (not much docs available online) for which I might open separate discussion later.
Currently I would like to know if anyone is using openconfig models to define data which should be streamed. I tested XR native models which work fine, but for openconfig I can only see Sensor Path State: Not Resolved.
example sensors configured in telegraf config (i'm using dial-in):
origin = "openconfig-bgp" path = "/bgp/neighbors/neighbor/state" origin = "openconfig-bgp" path = "/bgp/neighbors/neighbor/afi-safis/afi-safi/state"
i verified paths ^ with pyang tools against models in https://github.com/YangModels/yang/tree/master/vendor/cisco/xr/663 and I also downloaded models from device itself and run same test, all showed that path should be ok.
but same sensor path state is shown if I configure sensor via cli on device:
RP/0/RP0/CPU0:r3-xr663#sh run telemetry model-driven telemetry model-driven destination-group COLLECT address-family ipv4 11.255.0.100 port 50000 encoding self-describing-gpb protocol udp packetsize 1000 ! ! sensor-group OC-BGP sensor-path openconfig-bgp:bgp/neighbors/neighbor/state ! subscription SUBS sensor-group-id OC-BGP sample-interval 30000 ! ! RP/0/RP0/CPU0:r3-xr663#show telemetry model-driven subscription SUBS internal Subscription: SUBS ------------- State: NA Sensor groups: Id: OC-BGP Sample Interval: 30000 ms Sensor Path: openconfig-bgp:bgp/neighbors/neighbor/state Sensor Path State: Not Resolved
am I doing something wrong/missing something? or openconfig models are not supported yet?
thanks
Solved! Go to Solution.