how to add another mikrotik device
helospro opened this issue · comments
helospro commented
Yovko Yovkov commented
If the IP addresses are suitable for you, you can use such kind of block in your prometheus.yaml
, when using snmp_exporter
:
- job_name: 'mikrotik'
static_configs:
- targets:
- 1.2.3.4
- 5.6.7.8
metrics_path: /snmp
params:
module: [mikrotik]
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: 127.0.0.1:9116
```