9
0
Fork 0
Prometheus exporter for Mikrotik routers and switches
Go to file
Lauri Võsandi c02d23cead
continuous-integration/drone Build is passing Details
Handle TCPTransport closed exception
2022-11-12 16:47:13 +02:00
aio_api_ros@ec4b0a31ea Use simplified interfaces 2021-10-18 17:03:28 +03:00
config Switch to DNS service discovery 2021-10-15 13:11:46 +03:00
.drone.yml Add Drone config 2022-05-03 19:24:28 +03:00
.flake8 Initial commit 2021-06-30 23:03:27 +03:00
.gitignore Initial commit 2021-06-30 23:03:27 +03:00
.gitmodules Use publicly accessible URL for submodule repo 2021-10-18 17:12:03 +03:00
.pre-commit-config.yaml Initial commit 2021-06-30 23:03:27 +03:00
Dockerfile Add Drone config 2022-05-03 19:24:28 +03:00
README.md Update README 2021-10-16 08:49:25 +03:00
docker-compose.yml Switch to DNS service discovery 2021-10-15 13:11:46 +03:00
mikrotik.py Handle TCPTransport closed exception 2022-11-12 16:47:13 +02:00

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.