Open boxerwba opened 3 years ago
This is my config that works:
- job_name: 'mikrotik-exporter'
scrape_interval: 30s
static_configs:
- targets:
- 10.11.1.1 # your Mikrotik router IP you wish to monitor
metrics_path: /metrics
params:
module: [my_router]
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: mikrotik-exporter:9436
Can someone provide own Prometheus config file? I want to scrape metrics from two mikrotik. Here is my non-working prom config:
job_name: 'mikrotik1' scrape_interval: 10s static_configs:
job_name: 'mikrotik2' scrape_interval: 10s static_configs: