From c19e9916b56fb06d8a3c00b30371fc1e649af0f1 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Fri, 14 Feb 2020 15:36:05 -0800 Subject: [PATCH] Persist Prometheus data --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c7b5e4628..5933e26bc 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 +```