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

Zero-Downtime Prometheus TSDB Migration via vmctl

Export historical Prometheus TSDB blocks via snapshot API and stream them into VictoriaMetrics using vmctl without losing months of historical SLO baselines.

Measured TSDB & Cardinality Telemetry

Before retiring an OOM-prone Prometheus instance, enable --web.enable-admin-api briefly to cut a hard-linked TSDB snapshot. vmctl reads Prometheus blocks directly from disk and compresses them into VictoriaMetrics Gorilla+ZSTD format at 3x-5x smaller disk size.

Subsystem / SignalMeasured FootprintOperational Impact
Source Prometheus Snapshot500 GB TSDB blocks1.8 - 2.6 bytes/sample
Imported VictoriaMetrics Data110 - 165 GB compressed0.4 - 0.8 bytes/sample Gorilla+ZSTD
Import Throughput300k - 1M samples/secParallel workers via --vm-concurrency=4

Step-by-Step Diagnostic & Config Remediation

  1. Enable dual remote_write first: Stream live Prometheus samples to VictoriaMetrics :8428/api/v1/write immediately.
  2. Take Prometheus TSDB snapshot: POST /api/v1/admin/tsdb/snapshot to freeze clean historical blocks.
  3. Run vmctl prometheus backfill: Execute vmctl prometheus --prom-snapshot=... --vm-addr=http://127.0.0.1:8428.
curl -X POST http://127.0.0.1:9090/api/v1/admin/tsdb/snapshot
vmctl prometheus \
  --prom-snapshot=/var/lib/prometheus/snapshots/20261111T080000Z \
  --vm-addr=http://127.0.0.1:8428 \
  --vm-concurrency=4

Diagnostic FAQ

Will historical timestamps overwrite live remote_write samples?

With -dedup.minScrapeInterval enabled or clean cutoff timestamps, historical and live streams merge seamlessly.

Can Grafana query both historical and live series in one panel?

Yes. Once backfilled, every historical month sits alongside live scrapes in the same VictoriaMetrics storage path.

Related VictoriaMetrics Tuning Fixes Guides

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