prometheus: add retention setting
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
8fabdc2550
commit
c196bc4483
@ -21,6 +21,13 @@
|
|||||||
- Reload systemd
|
- Reload systemd
|
||||||
- Restart prometheus-pve-exporter
|
- 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
|
- name: Configure prometheus
|
||||||
template: src=prometheus.yml.j2 dest=/etc/prometheus/prometheus.yml
|
template: src=prometheus.yml.j2 dest=/etc/prometheus/prometheus.yml
|
||||||
notify: Restart prometheus
|
notify: Restart prometheus
|
||||||
|
Loading…
Reference in New Issue
Block a user