7
0
Fork 0
Prometheus exporter for Mikrotik routers and switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Lauri Võsandi 495027ebef Add Drone config 3 weeks ago
aio_api_ros@ec4b0a31ea Use simplified interfaces 7 months ago
config Switch to DNS service discovery 7 months ago
.drone.yml Add Drone config 3 weeks ago
.flake8 Initial commit 11 months ago
.gitignore Initial commit 11 months ago
.gitmodules Use publicly accessible URL for submodule repo 7 months ago
.pre-commit-config.yaml Initial commit 11 months ago
Dockerfile Add Drone config 3 weeks ago
README.md Update README 7 months ago
docker-compose.yml Switch to DNS service discovery 7 months ago
mikrotik.py API does not have logout/logoff command 6 months ago

README.md

Background

This is Prometheus exporter for Mikrotik routers and switches.

Usage

Supply MIKROTIK_USER, MIKROTIK_PASSWORD using .env file. Spin up the containers:

docker-compose up --build

Wait for targets to be scraped, open up Prometheus to run queries:

Why not SNMP

SNMP for whatever reason is horribly slow on Mikrotik, see here for discussion. It takes 2+ minutes to scrape over SNMP vs few seconds over management API. Also PoE status codes are not fully documented for SNMP, see forum post here.