github.com/aristanetworks/goarista@v0.0.0-20240514173732-cca2755bbd44/cmd/ocprometheus/sample_configs/ocprometheus_gnmi_4.23.yaml (about) 1 #Tested on 4.22+ 2 3 4 # Subscriptions to OpenConfig paths. 5 subscriptions: 6 - /network-instances/network-instance[name=default]/protocols/protocol[identifier=BGP][name=BGP]/bgp 7 - /system/processes 8 - /interfaces/interface 9 - eos_native:/Kernel/proc 10 # Prometheus metrics configuration. 11 # If you use named capture groups in the path, they will be extracted into labels with the same name. 12 # All fields are mandatory. 13 metrics: 14 - name: BGPCPU 15 path: /system/processes/process\[pid=2794\]/state/cpu-utilization 16 - name: BgpPfxReceived 17 path: /network-instances/network-instance\[name=default\]/protocols/protocol\[identifier=BGP\]\[name=BGP\]/bgp/neighbors/neighbor\[neighbor-address=(?P<neighbor>.+)\]/afi-safis/afi-safi\[afi-safi-name=IPV4_UNICAST\]/state/prefixes/received 18 - name: BgpPfxInstalled 19 path: /network-instances/network-instance\[name=default\]/protocols/protocol\[identifier=BGP\]\[name=BGP\]/bgp/neighbors/neighbor\[neighbor-address=(?P<neighbor>.+)\]/afi-safis/afi-safi\[afi-safi-name=IPV4_UNICAST\]/state/prefixes/installed 20 - name: BgpPfxSent 21 path: /network-instances/network-instance\[name=default\]/protocols/protocol\[identifier=BGP\]\[name=BGP\]/bgp/neighbors/neighbor\[neighbor-address=(?P<neighbor>.+)\]/afi-safis/afi-safi\[afi-safi-name=IPV4_UNICAST\]/state/prefixes/sent 22 - name: intfCounter 23 path: /interfaces/interface\[name=(?P<intf>[^\]]+)\]/state/counters/(?P<countertype>.+) 24 - name: intfAdminState 25 path: /interfaces/interface\[name=(?P<intf>[^\]]+)\]/state/admin-status 26 valuelabel: adminState 27 defaultvalue: 1 28 - name: intfOperState 29 path: /interfaces/interface\[name=(?P<intf>[^\]]+)\]/state/oper-status 30 valuelabel: operState 31 defaultvalue: 2 32 - name: subIntfCounter 33 path: /interfaces/interface\[name=(?P<intf>[^\]]+)\]/subinterfaces/subinterface\[index=(?P<subintf>[^\]]+)\]/state/counters/(?P<countertype>.+) 34 - name: subIntfOperState 35 path: /interfaces/interface\[name=(?P<intf>[^\]]+)\]/subinterfaces/subinterface\[index=(?P<subintf>[^\]]+)\]/state/oper-status 36 valuelabel: subOperState 37 defaultvalue: 3 38 - name: subIntfAdminState 39 path: /interfaces/interface\[name=(?P<intf>[^\]]+)\]/subinterfaces/subinterface\[index=(?P<subintf>[^\]]+)\]/state/admin-status 40 valuelabel: subAdminState 41 defaultvalue: 4 42 - name: cputotal 43 path: /Kernel/proc/cpu/utilization/total/(?P<usageType>(?:idle|nice|system|user|util)) 44 help: CPUtotal 45 - name: memoryinfo 46 path: /Kernel/proc/meminfo/(?P<usageType>(?:memAvailable|memFree|memTotal|buffers|cached)) 47 help: memory info