Fix options order in metrics docker commands
And use long-form command options for readability
This commit is contained in:
parent
06e74d15ae
commit
9f261e2213
|
|
@ -13,10 +13,10 @@ sudo docker volume create grafana-storage
|
|||
sudo docker volume create prometheus-storage
|
||||
|
||||
# run prometheus with the included config
|
||||
sudo docker -d run --network host -v prometheus-storage:/prometheus -v /path/to/zebra/prometheus.yaml:/etc/prometheus/prometheus.yml prom/prometheus
|
||||
sudo docker run --detach --network host --volume prometheus-storage:/prometheus --volume /path/to/zebra/prometheus.yaml:/etc/prometheus/prometheus.yml prom/prometheus
|
||||
|
||||
# run grafana
|
||||
sudo docker -d run --network host -e GF_SERVER_HTTP_PORT=3030 -e GF_SERVER_HTTP_ADDR=localhost -v grafana-storage:/var/lib/grafana grafana/grafana
|
||||
sudo docker run --detach --network host --env GF_SERVER_HTTP_PORT=3030 --env GF_SERVER_HTTP_ADDR=localhost --volume grafana-storage:/var/lib/grafana grafana/grafana
|
||||
```
|
||||
|
||||
Now the grafana dashboard is available at [http://localhost:3030](http://localhost:3030) ; the default username and password is `admin`/`admin`.
|
||||
|
|
|
|||
Loading…
Reference in New Issue