26 lines
669 B
Markdown
26 lines
669 B
Markdown
# RouterOS Prometheus Exporter
|
|
|
|
## Setup
|
|
|
|
You need to create a user on routerOS (>7.1):
|
|
|
|
```
|
|
/user group
|
|
add name=prometheus policy=api,rest-api,!local,!telnet,!ssh,!ftp,!reboot,!write,!policy,!test,!password,!web,!sniff,!sensitive,!romon,!dude,!tikapp
|
|
/user
|
|
add group=prometheus name=prometheus password=<your super secret password>
|
|
````
|
|
|
|
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>
|
|
``` |