generic-bgp4.yaml (#20328)
Co-authored-by: ilyam8 <ilya@netdata.cloud>
Fotis Voutsas committed
May 22, 2025 at 15:59 UTC
8f252bc127222ef7937cab874204db096067cdf0
1 file changed
+32
-63
src/go/plugin/go.d/config/go.d/snmp.profiles/default/_generic-bgp4.yaml
+32
-63
@@ -6,97 +6,66 @@ metrics:
6
name: bgpPeerTable
7
OID: 1.3.6.1.2.1.15.3
8
symbols:
9
- - name: peerConnectionByState
10
- constant_value_one: true
9
- OID: 1.3.6.1.2.1.15.3.1.3
10
name: bgpPeerAdminStatus
11
description: The desired state of the BGP connection
14
- unit: "{state}"
15
- - OID: 1.3.6.1.2.1.15.3.1.4
16
- name: bgpPeerNegotiatedVersion
17
- description: The negotiated version of BGP running between the two peers
18
- unit: "{version}"
19
- - OID: 1.3.6.1.2.1.15.3.1.9
20
- name: bgpPeerRemoteAs
21
- description: The remote autonomous system number
22
- unit: "1"
12
+ family: BGP4/Peer Connections/Status
13
+ unit: "{status}"
14
+ mapping:
15
+ 1: stop
16
+ 2: start
17
- OID: 1.3.6.1.2.1.15.3.1.2
18
name: bgpPeerState
19
description: The BGP peer connection state
26
- unit: "{state}"
27
- - OID: 1.3.6.1.2.1.15.3.1.10
28
- name: bgpPeerInUpdates
29
- description: The number of BGP UPDATE messages received on this connection
30
- unit: "{message}"
31
- - OID: 1.3.6.1.2.1.15.3.1.11
32
- name: bgpPeerOutUpdates
33
- description: The number of BGP UPDATE messages transmitted on this connection
34
- unit: "{message}"
20
+ family: BGP4/Peer Connections/Status
21
+ unit: "{status}"
22
+ mapping:
23
+ 1: idle
24
+ 2: connect
25
+ 3: active
26
+ 4: opensent
27
+ 5: openconfirm
28
+ 6: established
29
- OID: 1.3.6.1.2.1.15.3.1.12
30
name: bgpPeerInTotalMessages
31
description: The total number of messages received from the remote peer on this connection
32
+ family: BGP4/Peer Connections/Messages
33
unit: "{message}"
34
- OID: 1.3.6.1.2.1.15.3.1.13
35
name: bgpPeerOutTotalMessages
36
description: The total number of messages transmitted to the remote peer on this connection
37
+ family: BGP4/Peer Connections/Messages
38
+ unit: "{message}"
39
+ - OID: 1.3.6.1.2.1.15.3.1.10
40
+ name: bgpPeerInUpdates
41
+ description: The number of BGP UPDATE messages received on this connection
42
+ family: BGP4/Peer Connections/Messages
43
+ unit: "{message}"
44
+ - OID: 1.3.6.1.2.1.15.3.1.11
45
+ name: bgpPeerOutUpdates
46
+ description: The number of BGP UPDATE messages transmitted on this connection
47
+ family: BGP4/Peer Connections/Messages
48
unit: "{message}"
49
- OID: 1.3.6.1.2.1.15.3.1.15
50
name: bgpPeerFsmEstablishedTransitions
51
description: The total number of times the BGP FSM transitioned into the established state
52
+ family: BGP4/Peer Connections/Finite State Machine/Status
53
unit: "{transition}"
54
- OID: 1.3.6.1.2.1.15.3.1.16
55
name: bgpPeerFsmEstablishedTime
56
description: Time in seconds this peer has been in the Established state or since last in Established state
57
+ family: BGP4/Peer Connections/Finite State Machine/Status
58
unit: "s"
51
- - OID: 1.3.6.1.2.1.15.3.1.17
52
- name: bgpPeerConnectRetryInterval
53
- description: Time interval in seconds for the ConnectRetry timer
54
- unit: "s"
55
- - OID: 1.3.6.1.2.1.15.3.1.18
56
- name: bgpPeerHoldTime
57
- description: Time interval in seconds for the Hold Timer established with the peer
58
- unit: "s"
59
- - OID: 1.3.6.1.2.1.15.3.1.19
60
- name: bgpPeerKeepAlive
61
- description: Time interval in seconds for the KeepAlive timer established with the peer
62
- unit: "s"
63
- - OID: 1.3.6.1.2.1.15.3.1.20
64
- name: bgpPeerHoldTimeConfigured
65
- description: Time interval in seconds for the Hold Time configured for this BGP speaker with this peer
66
- unit: "s"
67
- - OID: 1.3.6.1.2.1.15.3.1.21
68
- name: bgpPeerKeepAliveConfigured
69
- description: Time interval in seconds for the KeepAlive timer configured for this BGP speaker with this peer
70
- unit: "s"
71
- - OID: 1.3.6.1.2.1.15.3.1.22
72
- name: bgpPeerMinASOriginationInterval
73
- description: Time interval in seconds for the MinASOriginationInterval timer
74
- unit: "s"
75
- # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
59
metric_tags:
60
- tag: remote_as
61
symbol:
62
OID: 1.3.6.1.2.1.15.3.1.9
63
name: bgpPeerRemoteAs
81
- - tag: admin_status
82
- symbol:
83
- OID: 1.3.6.1.2.1.15.3.1.3
84
- name: bgpPeerAdminStatus
85
- mapping:
86
- 1: stop
87
- 2: start
88
- - tag: peer_state
89
- symbol:
90
- OID: 1.3.6.1.2.1.15.3.1.2
91
- name: bgpPeerState
92
- mapping:
93
- 1: idle
94
- 2: connect
95
- 3: active
96
- 4: opensent
97
- 5: openconfirm
98
- 6: established
64
- tag: neighbor
65
symbol:
66
OID: 1.3.6.1.2.1.15.3.1.7
67
name: bgpPeerRemoteAddr
68
+ - tag: bgp_version
69
+ symbol:
70
+ OID: 1.3.6.1.2.1.15.3.1.4
71
+ name: bgpPeerNegotiatedVersion