upgrade readme

This commit is contained in:
IgorKha 2021-10-10 12:30:54 +03:00
parent 1e4296732d
commit cfadc49d24
No known key found for this signature in database
GPG key ID: F283C5AB2D59E902
2 changed files with 19 additions and 3 deletions

View file

@ -10,6 +10,24 @@ Grafana dashboard for Mikrotik/routerOS. [prometheus/snmp_exporter](https://gith
| Grafana | `>=8.1.7` |
## 🐳 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
2. Run
```console

4
run.sh
View file

@ -137,7 +137,7 @@ grafana_credentials() {
else
echo "Default Grafana:
User: ${YELLOW}admin${RESET}
Password: ${YELLOW}mikrotik\n${RESET}"
Password: ${YELLOW}mikrotik${RESET}"
fi
return
fi
@ -208,5 +208,3 @@ main() {
}
main "$@"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/IgorKha/Grafana-Mikrotik/master/run.sh)" "" --config