Grafana-Mikrotik/README.md

51 lines
1.5 KiB
Markdown
Raw Normal View History

2021-05-11 23:21:13 +03:00
# Grafana-Mikrotik
2021-05-12 17:15:56 +03:00
![visitors](https://visitor-badge.laobi.icu/badge?page_id=IgorKha.Grafana-Mikrotik)
2021-05-12 12:36:59 +03:00
Grafana dashboard for Mikrotik/routerOS. [prometheus/snmp_exporter](https://github.com/prometheus/snmp_exporter)
2021-05-11 23:21:13 +03:00
2021-07-31 23:13:48 +03:00
| | ver. |
|---|---|
| snmp_exporter | `>=0.20.0` |
| Grafana | `>=7.5.5` |
1.add into prometheus.yml
2021-07-31 23:13:48 +03:00
2021-05-11 23:21:13 +03:00
```yml
- job_name: Mikrotik
static_configs:
- targets:
- 0.0.0.0 # 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>
2021-05-11 23:21:13 +03:00
2021-07-31 23:13:48 +03:00
-----------
2021-07-31 23:13:48 +03:00
## Docker snmp_exporter
[![Docker Pulls](https://img.shields.io/docker/pulls/mashinkopochinko/snmp_exporter_mikrotik?logo=docker)](https://hub.docker.com/repository/docker/mashinkopochinko/snmp_exporter_mikrotik)
> amd64-linux container
```console
sudo docker run -d -p 9116:9116 mashinkopochinko/snmp_exporter_mikrotik:latest
```
-----------
2021-05-11 23:21:13 +03:00
![img1](https://github.com/IgorKha/Grafana-Mikrotik/blob/master/readme/1.png)
![img2](https://github.com/IgorKha/Grafana-Mikrotik/blob/master/readme/2.png)
![img3](https://github.com/IgorKha/Grafana-Mikrotik/blob/master/readme/3.png)