M0r13n / mikrotik_monitoring

Monitor your Mikrotik router with Prometheus and Grafana
MIT License
240 stars 33 forks source link

Multiple Nodes #21

Closed foysal-ahamed closed 11 months ago

foysal-ahamed commented 12 months ago

How can I add multiple node in config file? I added one but not wokring

M0r13n commented 11 months ago

@foysal-ahamed You need to adjust the config file of the Prometheus exporter.

Is is going to look something like this:


[Sample-Router]
    enabled = True
    hostname = localhost
    port = 8728
    username = username
    password = password

[Another-Router]
    enabled = True
    hostname = 192.168.1.1
    port = 8728
    username = username
    password = password

[Yet-Another-Router]
    enabled = True
    hostname = 10.0.0.1
    port = 8728
    username = username
    password = password
foysal-ahamed commented 11 months ago

Thank you, It is working.