You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
continuous-integration/drone Build is passing
Details
|
3 months ago | |
---|---|---|
aio_api_ros@ec4b0a31ea | 2 years ago | |
config | 2 years ago | |
.drone.yml | 1 year ago | |
.flake8 | 2 years ago | |
.gitignore | 2 years ago | |
.gitmodules | 2 years ago | |
.pre-commit-config.yaml | 2 years ago | |
Dockerfile | 1 year ago | |
README.md | 2 years ago | |
docker-compose.yml | 2 years ago | |
mikrotik.py | 3 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:
- rate(mikrotik_interface_rx_bytes[1m])
- rate(mikrotik_interface_tx_bytes[1m])
- rate(mikrotik_interface_rx_packets[1m])
- rate(mikrotik_interface_tx_packets[1m])
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.