Persist Prometheus data
This commit is contained in:
parent
34ca18eed8
commit
c19e9916b5
|
@ -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
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue