diff --git a/README.md b/README.md index 82e15a0..cf55721 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/run.sh b/run.sh index ebe0330..123ff06 100755 --- a/run.sh +++ b/run.sh @@ -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 \ No newline at end of file