SBA Default Configuration in SNMP Prometheus Adapter
The SNMP Prometheus Adapter includes an SBA default configuration which you can activate using the SBA spring profile. This default configuration automatically defines the alarm matching rules and metrics mapping rules.
The default SNMP Prometheus Adapter does not define any files to be monitored, nor does it define any Prometheus endpoints to be polled. You must add these configurations separately as system properties, or you can specify them in /opt/mtx/conf/snmp-adapter.yaml as shown below.
The following sample shows the default SBA configuration, which includes files to be monitored and also defines the Prometheus endpoints to be polled.
snmp-adapter:
nms:
zabbix:
host: zabbix-snmptraps
alarms:
logFiles:
- fileName: /var/log/mtx/nf.log
prometheusMetrics:
endpoints:
- url: 'http://localhost:9098/metrics'