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

HA Scraper Deduplication via -dedup.minScrapeInterval

Running two redundant Prometheus or vmagent scrapers doubles ingested samples and storage cost unless VictoriaMetrics deduplicates matching intervals.

Measured TSDB & Cardinality Telemetry

When two HA scrapers remote_write the same targets every 15s, setting -dedup.minScrapeInterval=15s leaves only a single canonical sample per interval during background merges—halving multi-year disk consumption and removing duplicate points from Grafana rate() queries.

Subsystem / SignalMeasured FootprintOperational Impact
Without Deduplication (2x HA)2.0x disk & sample noiseJagged rate() graphs on HA failover
With -dedup.minScrapeInterval=15s1.0x disk footprintMatches scrape_interval cleanly after merge
Replica Label HandlingDrop replica label via relabelEnsures both HA writers map to identical series

Step-by-Step Diagnostic & Config Remediation

  1. Strip prometheus_replica label: Add -remoteWrite.label or relabel drop on replica labels so HA pairs share identical metric identity.
  2. Match flag to scrape_interval: Set -dedup.minScrapeInterval=15s (or 30s) in victoriametrics.service.
  3. Verify deduplicated point spacing: Run an instant/range query in vmui to confirm single samples per 15s step.
# victoriametrics.service:
-dedup.minScrapeInterval=15s
# Also strip replica label on vmagent / Prometheus remote_write:
write_relabel_configs:
  - regex: "prometheus_replica|__replica__"
    action: labeldrop

Diagnostic FAQ

Should -dedup.minScrapeInterval be set smaller or equal to scrape_interval?

Set it equal to your slowest standard scrape_interval (e.g., 15s for 15s scrapes) unless preserving sub-interval jitter.

Does deduplication happen at ingest or during merge?

Deduplication runs both during query evaluation and permanently during background storage merges.

Related VictoriaMetrics Tuning Fixes Guides

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