From 2e22d4c7f29f6939e17cf6bf0c09b2446b3c5dd2 Mon Sep 17 00:00:00 2001 From: Iurii Tatishchev Date: Sun, 31 Mar 2024 12:27:07 -0700 Subject: [PATCH] monitoring: increase prometheus tsdb retention time from 15d to 30d --- .idea/jsonSchemas.xml | 16 ++++++++++++++++ .../monitoring/templates/docker-compose.yml.j2 | 3 +++ 2 files changed, 19 insertions(+) diff --git a/.idea/jsonSchemas.xml b/.idea/jsonSchemas.xml index cc8314e..90b1880 100644 --- a/.idea/jsonSchemas.xml +++ b/.idea/jsonSchemas.xml @@ -102,6 +102,22 @@ + + + + + + + diff --git a/roles/alpina/collections/services/monitoring/templates/docker-compose.yml.j2 b/roles/alpina/collections/services/monitoring/templates/docker-compose.yml.j2 index 61fdf1c..a169128 100644 --- a/roles/alpina/collections/services/monitoring/templates/docker-compose.yml.j2 +++ b/roles/alpina/collections/services/monitoring/templates/docker-compose.yml.j2 @@ -60,6 +60,9 @@ services: restart: unless-stopped # Needed to make config files readable user: "{{ remote_uid }}" + command: + - --config.file=/etc/prometheus/prometheus.yml + - --storage.tsdb.retention.time=30d volumes: - ./prometheus_config:/etc/prometheus:ro - {{ base_volume_path }}/monitoring/prometheus_configs:/etc/prometheus/extra:ro