monitoring: increase prometheus tsdb retention time from 15d to 30d

This commit is contained in:
Iurii Tatishchev 2024-03-31 12:27:07 -07:00
parent bc963f28ee
commit 2e22d4c7f2
Signed by: CaZzzer
GPG Key ID: 9A156B7DA6398968
2 changed files with 19 additions and 0 deletions

16
.idea/jsonSchemas.xml generated
View File

@ -102,6 +102,22 @@
</SchemaInfo>
</value>
</entry>
<entry key="prometheus.json">
<value>
<SchemaInfo>
<option name="name" value="prometheus.json" />
<option name="relativePathToSchema" value="https://json.schemastore.org/prometheus.json" />
<option name="applicationDefined" value="true" />
<option name="patterns">
<list>
<Item>
<option name="path" value="roles/alpina/collections/services/monitoring/templates/prometheus_config/prometheus.yml.j2" />
</Item>
</list>
</option>
</SchemaInfo>
</value>
</entry>
</map>
</state>
</component>

View File

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