RouterOS prometheus exporter with restapi (7.1)
 
 
 
Go to file
Yann Verry 1ba53e1d1a
add uptime
2022-01-08 21:55:37 +07:00
misc add grafana dashboard 2022-01-08 20:50:15 +07:00
.gitignore add .gitignore 2021-10-08 22:06:28 +07:00
Dockerfile fix dockerfile 2021-05-29 23:31:56 +07:00
Makefile Add dockerfile & makefile 2021-05-29 23:14:26 +07:00
Pipfile initial commit 2021-05-19 23:05:54 +07:00
Pipfile.lock Add dockerfile & makefile 2021-05-29 23:14:26 +07:00
README.md add uptime 2022-01-08 21:55:37 +07:00
main.py fix typo in copy/paste 2022-01-06 13:12:51 +07:00

README.md

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 www-ssl enable

Docker

On docker hub:

docker pull yverry/routeros-exporter

docker-compose:

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

build

simply use make build

Metrics

Today thoose metrics was fetched by this exporter:

  • interfaces
    • tx
    • rx
    • fastTrack
  • cpu
    • load
    • irq
  • system
    • uptime

Misc

Grafana

You can find grafana dashboard template in misc/grafana-dashboard.json