Replies: 2 comments 2 replies
-
I think I've run into this before. Here's what I have in my notes modules:
junos_bgp:
walk:
# - jnxBgpM2PeerTable
- 1.3.6.1.4.1.2636.5.1.1.2.6.2.1.7 #jnxBgpM2PrefixInPrefixes
- 1.3.6.1.4.1.2636.5.1.1.2.6.2.1.10 #jnxBgpM2PrefixOutPrefixes
overrides:
jnxBgpM2PeerLocalAddr:
type: InetAddressMissingSize
jnxBgpM2PeerRemoteAddr:
type: InetAddressMissingSize
lookups:
- source_indexes: [ jnxBgpM2PeerIndex ]
lookup: jnxBgpM2PeerRemoteAddr
- source_indexes: [jnxBgpM2PeerIndex ]
lookup: jnxBgpM2PeerRemoteAs |
Beta Was this translation helpful? Give feedback.
-
I found a super hacky way to do this by overriding
This way all the metrics have |
Beta Was this translation helpful? Give feedback.
-
I am trying to gather counts of BGP prefixes sent to each peer from a Juniper router, There is a SNMP metric for this:
jnxBgpM2PrefixOutPrefixes
, however this indexes on this do not have the local and remote peer addresses, it instead has a index number calledjnxBgpM2PeerIndex
.jnxBgpM2PeerIndex
confusingly is not an index for other helpful metrics likejnxBgpM2PeerRemoteAddr
, so i don't think i can get that value using lookups.Basically i have this in
genreator.yml
:That gives me something like this when i scrape:
How do i join these so i can have the remote address as a label on the jnxBgpM2PrefixOutPrefixes metric?
lookups
doesn't seem to work, because I need it to match the value ofjnxBgpM2PeerIndex
not an index.Beta Was this translation helpful? Give feedback.
All reactions