mirror of
https://github.com/IgorKha/Grafana-Mikrotik.git
synced 2025-12-06 02:19:28 +00:00
Refactoring the directory structure and added the ability to run with docker-compose
This commit is contained in:
parent
7aba11db31
commit
ef3aab6cdb
8 changed files with 7884 additions and 5 deletions
19
README.md
19
README.md
|
|
@ -8,6 +8,21 @@ Grafana dashboard for Mikrotik/routerOS. [prometheus/snmp_exporter](https://gith
|
|||
|---|---|
|
||||
| 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
|
||||
```console
|
||||
docker-compose up -d
|
||||
```
|
||||
3. Open [localhost:3000](http://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
|
||||
|
||||
|
|
@ -15,7 +30,7 @@ Grafana dashboard for Mikrotik/routerOS. [prometheus/snmp_exporter](https://gith
|
|||
- job_name: Mikrotik
|
||||
static_configs:
|
||||
- targets:
|
||||
- 0.0.0.0 # SNMP device IP.
|
||||
- 192.168.88.1 # SNMP device IP.
|
||||
metrics_path: /snmp
|
||||
params:
|
||||
module: [mikrotik]
|
||||
|
|
@ -34,7 +49,7 @@ Grafana dashboard for Mikrotik/routerOS. [prometheus/snmp_exporter](https://gith
|
|||
|
||||
-----------
|
||||
|
||||
## Docker snmp_exporter
|
||||
### Docker snmp_exporter
|
||||
|
||||
[](https://hub.docker.com/repository/docker/mashinkopochinko/snmp_exporter_mikrotik)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue