Skip to main content

Data Retention

Overview​

The tenant setting ADMIN:SETTINGS:DATA_RETENTION sets how long DataDios keeps performance data. Only a tenant admin can save it.

Set it on the screen

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​

FieldMeaning
default_daysDays to keep data for every family below.
familiesAn object of {family: days} that overrides default_days for that family.
  • Days are whole numbers from 28 to 3650.
  • 0 means never drop.
  • Leave default_days empty to keep each table's built-in retention.
  • A family in families wins over default_days.

Families​

FamilyTables it covers
raw_metricsThe raw_metrics_<group> tables
wl_cumulative_datawl_cumulative_data
wl_extraction_historywl_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.

A shorter window deletes data

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_data and wl_extraction_history go back to the default of 365 days. A tenant that had 0 (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.