Persistence prometheus data
This commit is contained in:
@@ -29,14 +29,17 @@ services:
|
||||
|
||||
prometheus:
|
||||
image: prom/prometheus:latest
|
||||
user: "1000:1000"
|
||||
restart: always
|
||||
command:
|
||||
- --storage.tsdb.retention.time=365d
|
||||
- --config.file=/etc/prometheus/prometheus.yml
|
||||
- --storage.tsdb.path=/prometheus
|
||||
ports:
|
||||
- "8083:9090"
|
||||
volumes:
|
||||
- ./data/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
||||
- ./data/prometheus/data:/prometheus
|
||||
|
||||
node_exporter:
|
||||
image: prom/node-exporter:latest
|
||||
|
||||
Reference in New Issue
Block a user