9
0
Fork 0
Prometheus exporter for Mikrotik routers and switches
Go to file
Lauri Võsandi e030f5c9a0 Initial commit 2021-06-30 23:03:27 +03:00
.flake8 Initial commit 2021-06-30 23:03:27 +03:00
.gitignore Initial commit 2021-06-30 23:03:27 +03:00
.pre-commit-config.yaml Initial commit 2021-06-30 23:03:27 +03:00
Dockerfile Initial commit 2021-06-30 23:03:27 +03:00
README.md Initial commit 2021-06-30 23:03:27 +03:00
docker-compose.yml Initial commit 2021-06-30 23:03:27 +03:00
mikrotik.py Initial commit 2021-06-30 23:03:27 +03:00

README.md

Background

This is Prometheus exporter for Mikrotik routers and switches.

Usage

Supply MIKROTIK_USER, MIKROTIK_PASSWORD and comma separated TARGETS as environment variables via .env file. Optionally configure PROMETHEUS_BEARER_TOKEN for securing the metrics endpoint.

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.