Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

swoga/MikrotikExporter.Net

Repository files navigation

MikrotikExporter.Net is no longer under development, as I have rewritten it in Golang! -> https://github.com/swoga/mikrotik-exporter

Prometheus Exporter for MikroTik devices

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

Configuration Specs

start arguments

-c, --config=VALUE         path to the yml configuration
-v                         enable verbose output
-vv                        enable more verbose output
-h, --help                 show help

endpoints

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.

uses the following libraries

Releases

No releases published

Packages

No packages published