fix(victoriametrics): enable dedup to accept duplicate samples (#279)

vmagent (and other senders) can deliver the same series+timestamp twice (retries/HA), which vmsingle rejected with "duplicate sample for timestamp; overrides not allowed". Set -dedup.minScrapeInterval=30s (>= the senders scrapeInterval) so duplicates collapse instead of being rejected.
This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-09-21 01:21:09 +08:00
1 parent 88697ce861
commit 64a81f16ec
1 file changed
+5
@@ -50,6 +50,11 @@ in
extraOptions = [
# Allowed percent of system memory VictoriaMetrics caches may occupy.
"-memory.allowedPercent=50"
# Deduplicate samples with the same timestamp within one scrape interval
# (e.g. from vmagent retries/HA replicas). Without this the storage rejects
# them with "duplicate sample for timestamp; overrides not allowed".
# Keep it >= the senders' scrapeInterval (vmagent 20s, in-cluster 30s).
"-dedup.minScrapeInterval=30s"
];
# Directory below /var/lib to store victoriametrics metrics data.
stateDir = "victoriametrics";