Skip to content

Commit 3a6f85e

Browse files
committed
Make prometheus retention size 0.8 * state volume size
1 parent eaeff4b commit 3a6f85e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

group_vars/prometheus.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ openondemand_address: "{{ hostvars[groups['openondemand'].0].api_address if 'ope
66
# Override group_var set in ansible-slurm-appliance all group - unless
77
# OOD is being deployed then there won't be an OOD group
88
prometheus_scrape_configs: "{{ prometheus_scrape_configs_default + (openondemand_scrape_configs if ( 'openondemand' in groups ) else [] ) }}"
9+
10+
# Fix Prometheus storage retention size to 80% of state volume size
11+
prometheus_storage_retention_size: "{{ ( 0.8 * hostvars[groups['openstack']].state_volume_size ) | int ~ 'GB' }}"

0 commit comments

Comments
 (0)