Module and Auth section are now separated in SNMP Exporter - https://github.com/prometheus/snmp_exporter/blob/main/auth-split-migration.md
So the code must be updated to something similar below.
auths:
snmpv3:
version: 3
security_level: authPriv
username: prometheus
password: AUTH-PASS
auth_protocol: MD5
priv_protocol: AES
priv_password: ENCR-PASS
modules:
mikrotik:
walk:
- 1.3.6.1.2.1.2
- 1.3.6.1.2.1.25
- 1.3.6.1.2.1.31
- 1.3.6.1.4.1.14988
- 1.3.6.1.4.1.2021.10.1.1
- 1.3.6.1.4.1.2021.10.1.2
- 1.3.6.1.2.1.1.5.0
....
Also do not forget to update Prometheus yaml config to use SNMP v3
- job_name: mikrotik
static_configs:
- targets:
- 192.168.10.1 # SNMP device IP.
metrics_path: /snmp
params:
auth: [snmpv3]
module: [mikrotik]
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: SNMP_Exporter IP Address:9116