diff --git a/README.md b/README.md index c7b5e462..5933e26b 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,12 @@ Notes on local metrics collection: ``` # create a storage volume for grafana (once) sudo docker volume create grafana-storage +# create a storage volume for prometheus (once) +sudo docker volume create prometheus-storage # run prometheus with the included config -sudo docker run --network host -v /path/to/zebra/prometheus.yaml:/etc/prometheus/prometheus.yml prom/prometheus +sudo docker run --network host -v prometheus-storage:/prometheus -v /path/to/zebra/prometheus.yaml:/etc/prometheus/prometheus.yml prom/prometheus # run grafana sudo docker run -d --network host -v grafana-storage:/var/lib/grafana grafana/grafana -``` \ No newline at end of file +```