Persist Prometheus data

This commit is contained in:
Henry de Valence 2020-02-14 15:36:05 -08:00 committed by Deirdre Connolly
parent 34ca18eed8
commit c19e9916b5
1 changed files with 4 additions and 2 deletions

View File

@ -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
```
```