mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
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:
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";
|
||||
|
||||
Reference in new issue
Block a user