MikrotikExporter.Net is no longer under development, as I have rewritten it in Golang! -> https://github.com/swoga/mikrotik-exporter
Prometheus Exporter written in .NET Core 3.1 to export metrics from MikroTik devices.
It is not predetermined which metrics are collected, you can create own modules.
Please see the examples here and here
-c, --config=VALUE path to the yml configuration
-v enable verbose output
-vv enable more verbose output
-h, --help show help
http://127.0.0.1:9436/metrics?target=router1 scrapes all modules defined at the target
http://127.0.0.1:9436/metrics?target=router1&module=interface scrapes only the interface module
http://127.0.0.1:9436/metrics?target=router1&module=interface,resource scrapes the interface and resource module
http://127.0.0.1:9436/discover returns all targets in static_config format
http://127.0.0.1:9436/-/reload (POST) reloads all configuration files
The /metrics
endpoint also accepts a query string ?debug=x
to set a specific log level and return the logs in the response.
Accepted values for x
are 0
for errors only, 1
for debug1, 2
for debug2.