Skip to content

Instantly share code, notes, and snippets.

@britcey
Last active February 4, 2020 18:09
Show Gist options
  • Select an option

  • Save britcey/c8ef50ededd7351c31b39eb6214469e6 to your computer and use it in GitHub Desktop.

Select an option

Save britcey/c8ef50ededd7351c31b39eb6214469e6 to your computer and use it in GitHub Desktop.
# HELP jnxBgpM2PrefixInPrefixesAccepted The number of prefixes for a peer that are installed in the Adj-Ribs-In and are eligible to become active in the Loc-Rib. - 1.3.6.1.4.1.2636.5.1.1.2.6.2.1.8
# TYPE jnxBgpM2PrefixInPrefixesAccepted gauge
jnxBgpM2PrefixInPrefixesAccepted{jnxBgpM2PeerIndex="0",jnxBgpM2PrefixCountersAfi="1",jnxBgpM2PrefixCountersSafi="1"} 963
jnxBgpM2PrefixInPrefixesAccepted{jnxBgpM2PeerIndex="11",jnxBgpM2PrefixCountersAfi="1",jnxBgpM2PrefixCountersSafi="1"} 21
jnxBgpM2PrefixInPrefixesAccepted{jnxBgpM2PeerIndex="13",jnxBgpM2PrefixCountersAfi="1",jnxBgpM2PrefixCountersSafi="1"} 21
jnxBgpM2PrefixInPrefixesAccepted{jnxBgpM2PeerIndex="3",jnxBgpM2PrefixCountersAfi="1",jnxBgpM2PrefixCountersSafi="1"} 970
jnxBgpM2PrefixInPrefixesAccepted{jnxBgpM2PeerIndex="8",jnxBgpM2PrefixCountersAfi="1",jnxBgpM2PrefixCountersSafi="1"} 970
# HELP jnxBgpM2PeerIndex This value is a unique index for the remote peer entry in the jnxBgpM2PeerTable - 1.3.6.1.4.1.2636.5.1.1.2.1.1.1.14
# TYPE jnxBgpM2PeerIndex gauge
jnxBgpM2PeerIndex{jnxBgpM2PeerLocalAddr="192.168.1.226",jnxBgpM2PeerRemoteAddr="192.168.1.229",jnxBgpM2PeerRoutingInstance="0"} 0
jnxBgpM2PeerIndex{jnxBgpM2PeerLocalAddr="192.168.1.226",jnxBgpM2PeerRemoteAddr="192.168.1.230",jnxBgpM2PeerRoutingInstance="0"} 8
jnxBgpM2PeerIndex{jnxBgpM2PeerLocalAddr="192.168.1.226",jnxBgpM2PeerRemoteAddr="192.168.1.233",jnxBgpM2PeerRoutingInstance="0"} 3
jnxBgpM2PeerIndex{jnxBgpM2PeerLocalAddr="192.168.1.226",jnxBgpM2PeerRemoteAddr="192.168.1.245",jnxBgpM2PeerRoutingInstance="0"} 13
jnxBgpM2PeerIndex{jnxBgpM2PeerLocalAddr="192.168.2.232",jnxBgpM2PeerRemoteAddr="192.168.2.233",jnxBgpM2PeerRoutingInstance="0"} 11
http://www.circitor.fr/Mibs/Mib/B/BGP4-V2-MIB-JUNIPER.mib
would like jnxBgpM2PeerRemoteAddr as part of jnxBgpM2PrefixInPrefixesAccepted, but this is not working:
jnxBgpM2PrefixInPrefixesAccepted{instance="foo.example.com"} * on (jnxBgpM2PeerIndex, instance) group_left(jnxBgpM2PeerRemoteAddr) jnxBgpM2PeerIndex
found duplicate series for the match group {instance="bar.example.com"} on the right hand-side of the operation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment