Skip to main content
READY SERIESSTORE LAB // PROMETHEUS OOM VS VICTORIAMETRICS TSDB BASELINE: 2026-11-11 | TARGET: 0.8-1.3 KB/SERIES | 0.4-0.9 B/SAMPLE ZSTD
VictoriaMetrics
VictoriaMetrics Disclosure: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero checkout cost (Disclosures).
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 / SignalMeasured FootprintOperational Impact
10s High-Res Metrics (1M series, 12 mo)~240 - 320 GB disk0.55 - 0.78 bytes/sample average
15s K8s Metrics (1.5M series, 24 mo)~340 - 460 GB diskFits 1 TB InterServer $6/mo Storage Slice
30s Infra Archive (5M series, 36 mo)~780 - 1,050 GB disk80% cheaper than Prometheus EBS/NVMe

Step-by-Step Diagnostic & Config Remediation

  1. Compute monthly sample volume: Samples/sec = active_series / scrape_interval; multiply by 2,592,000 sec/month.
  2. Pass -retentionPeriod in months: Use -retentionPeriod=12, 24, or 36 (default without unit is months).
  3. 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%.

Related VictoriaMetrics Tuning Fixes Guides

VictoriaMetrics: Cut Prometheus OOM RAM 80%+ on InterServer $6/TB Slice Launch $6/TB Slice