mirror of
https://github.com/IgorKha/Grafana-Mikrotik.git
synced 2025-12-06 10:29:28 +00:00
upgrade readme
This commit is contained in:
parent
1e4296732d
commit
cfadc49d24
2 changed files with 19 additions and 3 deletions
18
README.md
18
README.md
|
|
@ -10,6 +10,24 @@ Grafana dashboard for Mikrotik/routerOS. [prometheus/snmp_exporter](https://gith
|
||||||
| Grafana | `>=8.1.7` |
|
| Grafana | `>=8.1.7` |
|
||||||
## 🐳 Deploy with docker-compose
|
## 🐳 Deploy with docker-compose
|
||||||
|
|
||||||
|
### sh script deploy
|
||||||
|
|
||||||
|
```console
|
||||||
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/IgorKha/Grafana-Mikrotik/master/run.sh)" "" --config
|
||||||
|
```
|
||||||
|
> You can also pass some arguments to script to set some these options:
|
||||||
|
>
|
||||||
|
> --config: change the user and password to grafana and specify the mikrotik IP address
|
||||||
|
>
|
||||||
|
> stop: stop docker containers
|
||||||
|
>
|
||||||
|
> --help
|
||||||
|
>
|
||||||
|
>For example:
|
||||||
|
>
|
||||||
|
> sh run.sh --config
|
||||||
|
### docker manual deploy
|
||||||
|
|
||||||
1. Change targets ip (192.168.88.1) into file prometheus/prometheus.yml
|
1. Change targets ip (192.168.88.1) into file prometheus/prometheus.yml
|
||||||
2. Run
|
2. Run
|
||||||
```console
|
```console
|
||||||
|
|
|
||||||
4
run.sh
4
run.sh
|
|
@ -137,7 +137,7 @@ grafana_credentials() {
|
||||||
else
|
else
|
||||||
echo "Default Grafana:
|
echo "Default Grafana:
|
||||||
User: ${YELLOW}admin${RESET}
|
User: ${YELLOW}admin${RESET}
|
||||||
Password: ${YELLOW}mikrotik\n${RESET}"
|
Password: ${YELLOW}mikrotik${RESET}"
|
||||||
fi
|
fi
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
@ -208,5 +208,3 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
|
|
||||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/IgorKha/Grafana-Mikrotik/master/run.sh)" "" --config
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue