10
0
Prometheus exporter for Mikrotik routers and switches
This repository has been archived on 2024-07-26. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Madis Mägi 73081f3633
All checks were successful
gitea-kspace/mikrotik-exporter/pipeline/head This commit looks good
Add Jenkinsfile
2021-10-17 10:26:13 +03:00
config Switch to DNS service discovery 2021-10-15 13:11:46 +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
docker-compose.yml Switch to DNS service discovery 2021-10-15 13:11:46 +03:00
Dockerfile Use forked aio_api_ros library 2021-07-02 09:01:24 +03:00
Jenkinsfile Add Jenkinsfile 2021-10-17 10:26:13 +03:00
mikrotik.py Add port count metric 2021-10-16 08:49:13 +03:00
README.md Update README 2021-10-16 08:49:25 +03:00

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.