add 10 year retention for data in prometheus

This commit is contained in:
Jonathan Math 2021-12-06 17:25:15 -05:00
parent ec33dfab48
commit cbe6c58b0c
2 changed files with 2 additions and 1 deletions

View file

@ -27,6 +27,7 @@
user: root
networks_cli_compatible: yes
network_mode: default
command: --storage.tsdb.retention.time=10y
networks:
- name: newsblurnet
state: started

View file

@ -6,7 +6,7 @@ services:
image: prom/prometheus
ports:
- 9090:9090
command: '--config.file=/etc/prometheus/prometheus.yml'
command: '--config.file=/etc/prometheus/prometheus.yml --storage.tsdb.retention.time=10y'
volumes:
- ./docker/prometheus/prometheus.docker.yml:/etc/prometheus/prometheus.yml
- ./docker/prometheus/prometheus_rules.yml:/etc/prometheus/prometheus_rules.yml