🔰 Grafana dashboard for Mikrotik/routerOS [Prometheus, SNMP]
Find a file
2021-10-08 03:06:49 +03:00
grafana/provisioning Refactoring the directory structure and added the ability to run with docker-compose 2021-10-08 03:03:16 +03:00
prometheus Refactoring the directory structure and added the ability to run with docker-compose 2021-10-08 03:03:16 +03:00
readme Grafana 2021-10-07 20:39:28 +03:00
snmp Added Dockerfile 2021-07-31 23:13:48 +03:00
.env Refactoring the directory structure and added the ability to run with docker-compose 2021-10-08 03:03:16 +03:00
.gitignore Refactoring the directory structure and added the ability to run with docker-compose 2021-10-08 03:03:16 +03:00
docker-compose.yml Refactoring the directory structure and added the ability to run with docker-compose 2021-10-08 03:03:16 +03:00
LICENSE Create LICENSE 2021-10-08 03:06:49 +03:00
Mikrotik-snmp-prometheus.json Grafana 2021-10-07 20:39:28 +03:00
README.md Refactoring the directory structure and added the ability to run with docker-compose 2021-10-08 03:03:16 +03:00

Grafana-Mikrotik

visitors

Grafana dashboard for Mikrotik/routerOS. prometheus/snmp_exporter

ver.
snmp_exporter >=0.20.0
Grafana >=8.1.7

🐳 Deploy with docker-compose

  1. Change targets ip (192.168.88.1) into file prometheus/prometheus.yml
  2. Run
docker-compose up -d
  1. Open localhost:3000

Grafana login: admin, password: mikrotik

If you want to change the credentials, then edit the ".env" file


Manual deploy

1.add into prometheus.yml

  - job_name: Mikrotik
    static_configs:
      - targets:
        - 192.168.88.1  # SNMP device IP.
    metrics_path: /snmp
    params:
      module: [mikrotik]
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: localhost:9116  # The SNMP exporter's real hostname:port.

2.Configure Prometheus and run /snmp/snmp_exporter

3.Add dashboard https://grafana.com/grafana/dashboards/14420


Docker snmp_exporter

Docker Pulls

amd64-linux container

sudo docker run -d -p 9116:9116 mashinkopochinko/snmp_exporter_mikrotik:latest

img1