Data Retention
Overview
The tenant setting ADMIN:SETTINGS:DATA_RETENTION sets how long DataDios keeps performance data. Only a tenant admin can save it.
The setting is on Manage → Configuration → Data retention (?tab=retention). It is also saved through the config API, POST /config/params with scope_value set to ADMIN:SETTINGS:DATA_RETENTION.
What you can set
| Field | Meaning |
|---|---|
default_days | Days to keep data for every family below. |
families | An object of {family: days} that overrides default_days for that family. |
- Days are whole numbers from 28 to 3650.
0means never drop.- Leave
default_daysempty to keep each table's built-in retention. - A family in
familieswins overdefault_days.
Families
| Family | Tables it covers |
|---|---|
raw_metrics | The raw_metrics_<group> tables |
wl_cumulative_data | wl_cumulative_data |
wl_extraction_history | wl_extraction_history |
Other tables are not configurable and never read this setting. That includes raw_lookups, raw_associations and workflow_results (the entity catalog), which keeps its built-in 365 days; saving a family for it is refused.
Example value:
{ "default_days": 180, "families": { "wl_extraction_history": 0 } }
When it takes effect
Saving the setting does not change any existing table. The new window is applied when:
- a new table is created, or
- an operator runs partition reconcile.
On a deployment with partition detach disabled (PARTITION_DETACH_DISABLE), reconcile is refused and the setting is accepted but never takes effect.
When a table gets a shorter window, data older than it is deleted at the next partition maintenance. There is no undo.
Clearing the setting
Saving an empty setting ({}) removes it. At the next reconcile:
wl_cumulative_dataandwl_extraction_historygo back to the default of 365 days. A tenant that had0(never drop) loses data older than a year at the next maintenance.- The
raw_metrics_<group>tables keep their last window. To change them, save an explicit value.
If the saved setting cannot be read
An unreadable saved setting (the store is down, or the stored value is invalid) never shortens an existing table. Reconcile skips those tables and logs a warning. A new table is created with its built-in retention (365 days), which can be shorter than what you chose.