prometheus: add retention setting
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Markus 2021-08-31 19:09:12 +02:00
parent 8fabdc2550
commit c196bc4483
1 changed files with 7 additions and 0 deletions

View File

@ -21,6 +21,13 @@
- Reload systemd
- Restart prometheus-pve-exporter
- name: Configure prometheus retention
lineinfile:
path: /etc/default/prometheus
regexp: '^ARGS=.*$'
line: 'ARGS="--storage.tsdb.retention.time=365d"'
notify: Restart prometheus
- name: Configure prometheus
template: src=prometheus.yml.j2 dest=/etc/prometheus/prometheus.yml
notify: Restart prometheus