Persist Prometheus data
@@ -28,9 +28,11 @@ 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
