Timeseries Retention Downsampling

Design retention, rollups and compression for a time-series store: compute ingest rate, bytes per point and active series cardinality first, write a resolution-versus-retention table driven by what old data is asked, build the rollup (TimescaleDB continuous aggregate, ClickHouse materialized view into AggregatingMergeTree, Prometheus recording rules), backfill it, verify against raw over an overlap window, and only then drop raw by dropping whole chunks or partitions, never DELETE. Sizes Timescale chunks, compresses after the late-write window, audits high-cardinality labels. Use for "our metrics table is 4TB", "how long should we keep raw data", "set up continuous aggregates", "chunk interval" or "downsample old data without losing history". Not for general relational partitions (table-partitioning), what to emit (instrumentation) or hardware sizing (capacity-planning).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 929df4bf59

Frequently asked questions

npx get-skill add greenblacked/timeseries-retention-downsampling