@cryptotaxi247 / netdata-1 / commits / 01c240177

SNMP: _generic-if.yaml pass (#20317)

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>

Fotis Voutsas committed May 21, 2025 at 11:39 UTC 01c24017721310bea35a238bf786dc4e1912215d
1 file changed +40 -30
src/go/plugin/go.d/config/go.d/snmp.profiles/default/_generic-if.yaml
+40 -30
@@ -17,16 +17,7 @@ metadata:
17 OID: 1.3.6.1.2.1.2.2.1.6
18 name: ifPhysAddress
19 format: mac_address
20 - admin_status:
21 - symbol:
22 - OID: 1.3.6.1.2.1.2.2.1.7
23 - name: ifAdminStatus
24 - oper_status:
25 - symbol:
26 - OID: 1.3.6.1.2.1.2.2.1.8
27 - name: ifOperStatus
28 - # TODO: Impl ip_address
29 - alias: # from another table
20 + alias:
21 symbol:
22 OID: 1.3.6.1.2.1.31.1.1.1.18
23 name: ifAlias
@@ -42,6 +33,7 @@ metrics:
33 OID: 1.3.6.1.2.1.2.1.0
34 name: ifNumber
35 description: Number of network interfaces regardless of their current state present on this system
36 + family: Network/Interfaces/Count
37 unit: "{interface}"
38 - MIB: IF-MIB
39 table:
@@ -52,19 +44,23 @@ metrics:
44 - OID: 1.3.6.1.2.1.2.2.1.14
45 name: ifInErrors
46 description: Number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol
55 - unit: "{packet}"
56 - - OID: 1.3.6.1.2.1.2.2.1.13
57 - name: ifInDiscards
58 - description: Number of inbound packets chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol
59 - unit: "{packet}"
47 + family: Network/Interfaces/Errors
48 + unit: "{error}"
49 - OID: 1.3.6.1.2.1.2.2.1.20
50 name: ifOutErrors
51 description: Number of outbound packets that could not be transmitted because of errors
63 - unit: "{packet}"
52 + family: Network/Interfaces/Errors
53 + unit: "{error}"
54 + - OID: 1.3.6.1.2.1.2.2.1.13
55 + name: ifInDiscards
56 + description: Number of inbound packets chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol
57 + family: Network/Interfaces/Discards
58 + unit: "{discard}"
59 - OID: 1.3.6.1.2.1.2.2.1.19
60 name: ifOutDiscards
61 description: Number of outbound packets chosen to be discarded even though no errors had been detected to prevent their being transmitted
67 - unit: "{packet}"
62 + family: Network/Interfaces/Discards
63 + unit: "{discard}"
64 metric_tags:
65 - symbol:
66 OID: 1.3.6.1.2.1.31.1.1.1.1
@@ -76,8 +72,6 @@ metrics:
72 name: ifAlias
73 table: ifXTable
74 tag: interface_alias
79 - - index: 1 # ifIndex
80 - tag: interface_index
75 - MIB: IF-MIB
76 table:
77 OID: 1.3.6.1.2.1.2.2
@@ -85,15 +79,30 @@ metrics:
79 symbols:
80 - OID: 1.3.6.1.2.1.2.2.1.7
81 name: ifAdminStatus
88 - description: Desired state of the interface
89 - unit: "TBD"
82 + description: Current administrative state of the interface
83 + family: Network/Interfaces/Status
84 + unit: "{status}"
85 + mapping:
86 + 1: up
87 + 2: down
88 + 3: testing
89 - OID: 1.3.6.1.2.1.2.2.1.8
90 name: ifOperStatus
91 description: Current operational state of the interface
93 - unit: "TBD"
92 + family: Network/Interfaces/Status
93 + unit: "{status}"
94 + mapping:
95 + 1: up
96 + 2: down
97 + 3: testing
98 + 4: unknown
99 + 5: dormant
100 + 6: notPresent
101 + 7: lowerLayerDown
102 - OID: 1.3.6.1.2.1.2.2.1.5
103 name: ifSpeed
104 description: Estimate of the interface's current bandwidth in bits per second
105 + family: Network/Interfaces/Speed
106 unit: "bit/s"
107 metric_tags:
108 - symbol:
@@ -106,8 +115,6 @@ metrics:
115 name: ifAlias
116 table: ifXTable
117 tag: interface_alias
109 - - index: 1 # ifIndex
110 - tag: interface_index
118 - MIB: IF-MIB
119 table:
120 OID: 1.3.6.1.2.1.31.1.1
@@ -117,26 +124,32 @@ metrics:
124 - OID: 1.3.6.1.2.1.31.1.1.1.7
125 name: ifHCInUcastPkts
126 description: Number of packets delivered by this sub-layer to a higher layer which were not addressed to a multicast or broadcast address
127 + family: Network/Interfaces/Packets
128 unit: "{packet}"
129 - OID: 1.3.6.1.2.1.31.1.1.1.8
130 name: ifHCInMulticastPkts
131 description: Number of packets delivered by this sub-layer to a higher layer which were addressed to a multicast address
132 + family: Network/Interfaces/Packets
133 unit: "{packet}"
134 - OID: 1.3.6.1.2.1.31.1.1.1.9
135 name: ifHCInBroadcastPkts
136 description: Number of packets delivered by this sub-layer to a higher layer which were addressed to a broadcast address
137 + family: Network/Interfaces/Packets
138 unit: "{packet}"
139 - OID: 1.3.6.1.2.1.31.1.1.1.11
140 name: ifHCOutUcastPkts
141 description: Total number of packets that higher-level protocols requested be transmitted and which were not addressed to a multicast or broadcast address
142 + family: Network/Interfaces/Packets
143 unit: "{packet}"
144 - OID: 1.3.6.1.2.1.31.1.1.1.12
145 name: ifHCOutMulticastPkts
146 description: Total number of packets that higher-level protocols requested be transmitted and which were addressed to a multicast address
147 + family: Network/Interfaces/Packets
148 unit: "{packet}"
149 - OID: 1.3.6.1.2.1.31.1.1.1.13
150 name: ifHCOutBroadcastPkts
151 description: Total number of packets that higher-level protocols requested be transmitted and which were addressed to a broadcast address
152 + family: Network/Interfaces/Packets
153 unit: "{packet}"
154 metric_tags:
155 - symbol:
@@ -148,8 +161,6 @@ metrics:
161 name: ifAlias
162 table: ifXTable
163 tag: interface_alias
151 - - index: 1 # ifIndex
152 - tag: interface_index
164 - MIB: IF-MIB
165 table:
166 OID: 1.3.6.1.2.1.31.1.1
@@ -159,10 +170,12 @@ metrics:
170 - OID: 1.3.6.1.2.1.31.1.1.1.6
171 name: ifHCInOctets
172 description: Total number of octets received on the interface including framing characters
173 + family: Network/Interfaces/Traffic
174 unit: "By"
175 - OID: 1.3.6.1.2.1.31.1.1.1.10
176 name: ifHCOutOctets
177 description: Total number of octets transmitted out of the interface including framing characters
178 + family: Network/Interfaces/Traffic
179 unit: "By"
180 metric_tags:
181 - symbol:
@@ -174,8 +187,6 @@ metrics:
187 name: ifAlias
188 table: ifXTable
189 tag: interface_alias
177 - - index: 1 # ifIndex
178 - tag: interface_index
190 - MIB: IF-MIB
191 table:
192 OID: 1.3.6.1.2.1.31.1.1
@@ -184,6 +195,7 @@ metrics:
195 - OID: 1.3.6.1.2.1.31.1.1.1.15
196 name: ifHighSpeed
197 description: Estimate of the interface's current bandwidth in units of 1,000,000 bits per second
198 + family: Network/Interfaces/Speed
199 unit: "Mbit/s"
200 metric_tags:
201 - symbol:
@@ -195,5 +207,3 @@ metrics:
207 name: ifAlias
208 table: ifXTable
209 tag: interface_alias
198 - - index: 1 # ifIndex
199 - tag: interface_index