Retention tiers without rewriting storage
- One minute read - 68 wordsRetention is usually implemented as deletion, which is both expensive and destructive. We downsample instead: data younger than 30 days keeps full resolution, older data collapses into 5-minute buckets with min, max, mean and count preserved.
Queries that need raw resolution are answered only for the full-resolution window, and the API returns an explicit resolution field so clients never silently receive aggregated numbers where they expected raw ones.