RouterOS prometheus exporter with restapi (7.1)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Yann Verry 1ba53e1d1a
add uptime
4 months ago
misc add grafana dashboard 4 months ago
.gitignore add .gitignore 8 months ago
Dockerfile fix dockerfile 12 months ago
Makefile Add dockerfile & makefile 12 months ago
Pipfile initial commit 1 year ago
Pipfile.lock Add dockerfile & makefile 12 months ago
README.md add uptime 4 months ago
main.py fix typo in copy/paste 5 months ago

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