prometheus: add customizable storage retention, default to 10 years

This commit is contained in:
uumas
2023-06-26 13:12:09 +03:00
parent 64aa8c574c
commit 901a2f7450
3 changed files with 13 additions and 0 deletions

View File

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