aristanetworks / goarista

Fairly general building blocks used in Arista Go code and open-sourced for the benefit of all.
Apache License 2.0
206 stars 66 forks source link

subscription path for interface status, bgp summary #55

Open mhprabin opened 3 years ago

mhprabin commented 3 years ago

Hi,

which path should i look up for interface status, bgp summary(number of prefix received, advertised)?

noredistribution commented 3 years ago

not sure if you've found out the answers already for this but you can see the above in our examples in

https://github.com/aristanetworks/goarista/tree/master/cmd/ocprometheus/sample_configs or https://github.com/aristanetworks/goarista/tree/master/cmd/octsdb/sample_configs

If you're interested in the OC paths, interface status is at:

or the eos-native path for inteface status would be under: /Sysdb/interface/status/eth/phy/slice/1/intfStatus/

BGP prefix received/sent can be found under

but if you're using ocprometheus, arrays are not supported so you should use gNMI and subscribe to the OC path instead