Project

General

Profile

action #66019

Updated by okurz over 3 years ago

## Motivation 
 When working on #64574 I've noticed that we don't have a retention policy and the default policy seems to be storing the data forever. That's likely something we want to adjust in the long term. 

 ## Acceptance criteria 
 * **AC1:** Downsampling and retention is enabled with at least *some* sensible settings on the influxdb on monitor.qa.suse.de 


 ## Suggestion ### notes 

 * Read https://docs.influxdata.com/influxdb/v2.0/process-data/common-tasks/downsample-data/ about downsampling 
 * Read https://docs.influxdata.com/influxdb/v2.0/reference/api/influxdb-1x/dbrp/ about retention 
 * Look into That's what mkittler has I have drafted so far (not tested): https://gitlab.suse.de/mkittler/salt-states-openqa/-/commit/1880714e73d467ac5ed9c0a5b5cec4467fc14a20 
 * Introduce the corresponding changes to limit the storage space used by influxdb, mainly to prevent the storage to run full

Back