VictoriaMetrics Tuning Fixes // SeriesStore Lab
6-36 Month Retention with Gorilla & ZSTD Compression
VictoriaMetrics combines Gorilla delta-of-delta timestamps with ZSTD block compression to store metrics at 0.4-0.9 bytes per sample across 6 to 36 months.
Measured TSDB & Cardinality Telemetry
Because ZSTD compresses sorted columnar blocks across merged multi-day parts, longer retention windows actually improve compression ratios on steady infrastructure counters. Keeping 24-36 months of 1.5M series at 15s scrapes takes ~180-360 GB—easily fitting on a single InterServer $6/TB Storage Slice.
| Subsystem / Signal | Measured Footprint | Operational Impact |
|---|---|---|
| 10s High-Res Metrics (1M series, 12 mo) | ~240 - 320 GB disk | 0.55 - 0.78 bytes/sample average |
| 15s K8s Metrics (1.5M series, 24 mo) | ~340 - 460 GB disk | Fits 1 TB InterServer $6/mo Storage Slice |
| 30s Infra Archive (5M series, 36 mo) | ~780 - 1,050 GB disk | 80% cheaper than Prometheus EBS/NVMe |
Step-by-Step Diagnostic & Config Remediation
- Compute monthly sample volume: Samples/sec = active_series / scrape_interval; multiply by 2,592,000 sec/month.
- Pass -retentionPeriod in months: Use -retentionPeriod=12, 24, or 36 (default without unit is months).
- Disable unnecessary downsampling: Wait until validating 0.4-0.9 B/sample disk usage before adding -downsampling.period flags.
# Retain 24 months of raw granularity + downsample older than 90d to 5m: -retentionPeriod=24 -downsampling.period=90d:5m
Diagnostic FAQ
Does -retentionPeriod=36 mean 36 days or 36 months?
In VictoriaMetrics, a bare integer means months (36 = 36 months). Suffix with d for days (e.g., 90d).
Is downsampling required for 36-month retention?
Not mandatory, though -downsampling.period=90d:5m shrinks multi-year disk usage by another 40-60%.