From 4057dc47c8510a85e794d66e549c37b3bc27bfe5 Mon Sep 17 00:00:00 2001 From: Yann Verry Date: Sat, 29 May 2021 23:58:14 +0200 Subject: [PATCH] Add more details on how to setup this exporter --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3a52112..d7a8d8c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,25 @@ # 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= + - ROUTER_USERNAME= + - ROUTER_PASSWORD= +``` \ No newline at end of file