Grafana-Mikrotik icon indicating copy to clipboard operation
Grafana-Mikrotik copied to clipboard

how to add another mikrotik device

Open helospro opened this issue 1 year ago • 1 comments

Hello, i want to add another mikrotik device.

what should i do ?

thanks

Screenshot from 2022-09-14 11-55-10

helospro avatar Sep 14 '22 04:09 helospro

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
        ```

yyovkov avatar Oct 09 '22 13:10 yyovkov