prometheus: add customizable storage retention, default to 10 years
This commit is contained in:
@@ -7,6 +7,13 @@
|
||||
docker_service: prometheus
|
||||
docker_image: prom/prometheus
|
||||
reverse_proxy_type: none
|
||||
docker_command:
|
||||
- "--config.file=/etc/prometheus/prometheus.yml"
|
||||
- "--storage.tsdb.path=/prometheus"
|
||||
- "--storage.tsdb.retention={{ prometheus_storage_retention }}"
|
||||
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
|
||||
- "--web.console.templates=/usr/share/prometheus/consoles"
|
||||
|
||||
docker_volumes:
|
||||
- name: data
|
||||
path: /prometheus
|
||||
|
||||
Reference in New Issue
Block a user