Add more details on how to setup this exporter
This commit is contained in:
parent
1d9b6c3cd1
commit
4057dc47c8
23
README.md
23
README.md
|
@ -1,4 +1,25 @@
|
||||||
# RouterOS Restful API
|
# RouterOS Restful API
|
||||||
|
|
||||||
## Dev
|
## 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>
|
||||||
|
```
|
Loading…
Reference in a new issue