github.com/aristanetworks/goarista@v0.0.0-20240514173732-cca2755bbd44/cmd/ocprometheus/sample_configs/ocprometheus_gnmi.yml (about) 1 # Per-device labels. Optional 2 # Exactly the same set of labels must be specified for each device. 3 # If device address is *, the labels apply to all devices not listed explicitly. 4 # If any explicit device if listed below, then you need to specify all devices you're subscribed to, 5 # or have a wildcard entry. Otherwise, updates from non-listed devices will be ignored. 6 #deviceLabels: 7 # 10.1.1.1: 8 # lab1: val1 9 # lab2: val2 10 # '*': 11 # lab1: val3 12 # lab2: val4 13 14 # Subscriptions to OpenConfig paths. 15 subscriptions: 16 - /network-instances/network-instance[name=default]/protocols/protocol[identifier=BGP][name=BGP]/bgp 17 - /system/processes 18 # Prometheus metrics configuration. 19 # If you use named capture groups in the path, they will be extracted into labels with the same name. 20 # All fields are mandatory. 21 metrics: 22 - name: BgpPfxReceived 23 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 24 =IPV4_UNICAST\]/state/prefixes/received 25 - name: BgpPfxInstalled 26 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 27 =IPV4_UNICAST\]/state/prefixes/installed 28 - name: BgpPfxSent 29 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 30 =IPV4_UNICAST\]/state/prefixes/sent 31 - name: BGPCPU 32 path: /system/processes/process\[pid=937\]/state/cpu-utilization