RouterOS prometheus exporter with restapi (7.1)
Find a file
2021-05-29 23:58:14 +02:00
Dockerfile fix dockerfile 2021-05-29 23:31:56 +02:00
main.py Add dockerfile & makefile 2021-05-29 23:14:26 +02:00
Makefile Add dockerfile & makefile 2021-05-29 23:14:26 +02:00
Pipfile initial commit 2021-05-19 23:05:54 +02:00
Pipfile.lock Add dockerfile & makefile 2021-05-29 23:14:26 +02:00
README.md Add more details on how to setup this exporter 2021-05-29 23:58:14 +02:00

RouterOS Restful API

Setup

You need to create a user on routerOS (>7.1):

/user group
add name=prometheus policy=read,winbox,api,rest-api,!local,!telnet,!ssh,!ftp,!reboot,!write,!policy,!test,!password,!web,!sniff,!sensitive,!romon,!dude,!tikapp
add group=prometheus name=prometheus

You also need to www-ssl (enable)[https://help.mikrotik.com/docs/display/ROS/REST+API]

Docker

routerosapi:
    image: python-routeros
    restart: always
    environment:
        - ROUTER_IP=<your ROUTERIP>
        - ROUTER_USERNAME=<your prometheus username>
        - ROUTER_PASSWORD=<your super secret password>