fix snmp prof mikrotik mem tagging (#20504)
Ilya Mashchenko committed
Jun 17, 2025 at 14:17 UTC
6a0c92b1de1303028844d76bf46741de05586b57
1 file changed
+15
-5
src/go/plugin/go.d/config/go.d/snmp.profiles/default/mikrotik-router.yaml
+15
-5
@@ -151,16 +151,26 @@ metrics:
151
OID: 1.3.6.1.2.1.25.2.3
152
name: hrStorageTable
153
symbols:
154
+ # HOST-RESOURCES-MIB reports storage sizes in "allocation units" rather than bytes.
155
+ # The allocation unit size is defined in hrStorageAllocationUnits (1.3.6.1.2.1.25.2.3.1.4).
156
+ # MikroTik devices typically use 1024-byte allocation units for all storage types.
157
+ # The scale_factor multiplies the raw value by 1024 to convert to bytes.
158
- OID: 1.3.6.1.2.1.25.2.3.1.5
159
name: memory.total
156
- description: Size of the storage represented by this entry in allocation units
160
+ description: Total size of the storage in bytes
161
family: MikroTik/Memory
158
- unit: "{memory_allocation_unit}"
162
+ scale_factor: 1024
163
+ unit: "By"
164
- OID: 1.3.6.1.2.1.25.2.3.1.6
165
name: memory.used
161
- description: Amount of the storage represented by this entry that is allocated
166
+ description: Amount of storage currently allocated in bytes
167
family: MikroTik/Memory
163
- unit: "{memory_allocation_unit}"
168
+ scale_factor: 1024
169
+ unit: "By"
170
metric_tags:
165
- - tag: mem
171
+ - tag: mem_index
172
index: 1
173
+ - tag: mem
174
+ symbol:
175
+ OID: 1.3.6.1.2.1.25.2.3.1.3
176
+ name: hrStorageDescr