Skip to main content

Data Retention

Dash stores history data in PostgreSQL + TimescaleDB. Redis primarily stores runtime state.

Data Classes

  • Metrics history.
  • Network traffic facts and rollups.
  • Nodes, groups, and system settings.
  • Alert rules, events, runtime state, and notification outbox.
  • Theme package metadata.

Retention Config

Normal metric retention:

database:
retention_days: 45

Traffic fact retention:

database:
traffic_retention_days: 90

Changing retention affects future policy sync. Existing chunks are removed by TimescaleDB policy execution.

Tables

Normal metrics retention covers the metric hypertables, including disk IO, disk usage, NIC metrics, and physical disk temperature.

Traffic retention covers 5-minute traffic facts. Monthly snapshots are retained separately as accounting output.

Backup Boundary

Retention policy is not a backup strategy. Back up PostgreSQL before upgrades, migration work, retention changes, and storage migration.