From 19c04549a5ed20fad02c939ca46f70a197069f11 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 16 Jan 2024 20:10:08 +0200 Subject: [PATCH] docs/Single-server-VictoriaMetrics.md: explain why staleness markers are treated as an ordinary values during de-duplication This is a follow-up for d374595e31b7cf031a1546116c124323e51bd559 Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5587 --- README.md | 5 +++-- docs/README.md | 5 +++-- docs/Single-server-VictoriaMetrics.md | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7a421df37..7677deeda 100644 --- a/README.md +++ b/README.md @@ -1768,8 +1768,9 @@ This aligns with the [staleness rules in Prometheus](https://prometheus.io/docs/ If multiple raw samples have **the same timestamp** on the given `-dedup.minScrapeInterval` discrete interval, then the sample with **the biggest value** is kept. -Prometheus stale markers are respected as any other value. If raw sample with the biggest timestamp on `-dedup.minScrapeInterval` -has a stale marker as a value - it will be kept after the deduplication. +[Prometheus stalenes markers](https://docs.victoriametrics.com/vmagent.html#prometheus-staleness-markers) are processed as any other value during de-duplication. +If raw sample with the biggest timestamp on `-dedup.minScrapeInterval` contains a stale marker, then it is kept after the deduplication. +This allows properly preserving staleness markers during the de-duplication. Please note, [labels](https://docs.victoriametrics.com/keyConcepts.html#labels) of raw samples should be identical in order to be deduplicated. For example, this is why [HA pair of vmagents](https://docs.victoriametrics.com/vmagent.html#high-availability) diff --git a/docs/README.md b/docs/README.md index a3e24c984..8bde09a60 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1771,8 +1771,9 @@ This aligns with the [staleness rules in Prometheus](https://prometheus.io/docs/ If multiple raw samples have **the same timestamp** on the given `-dedup.minScrapeInterval` discrete interval, then the sample with **the biggest value** is kept. -Prometheus stale markers are respected as any other value. If raw sample with the biggest timestamp on `-dedup.minScrapeInterval` -has a stale marker as a value - it will be kept after the deduplication. +[Prometheus stalenes markers](https://docs.victoriametrics.com/vmagent.html#prometheus-staleness-markers) are processed as any other value during de-duplication. +If raw sample with the biggest timestamp on `-dedup.minScrapeInterval` contains a stale marker, then it is kept after the deduplication. +This allows properly preserving staleness markers during the de-duplication. Please note, [labels](https://docs.victoriametrics.com/keyConcepts.html#labels) of raw samples should be identical in order to be deduplicated. For example, this is why [HA pair of vmagents](https://docs.victoriametrics.com/vmagent.html#high-availability) diff --git a/docs/Single-server-VictoriaMetrics.md b/docs/Single-server-VictoriaMetrics.md index 818f99559..a0cd9b520 100644 --- a/docs/Single-server-VictoriaMetrics.md +++ b/docs/Single-server-VictoriaMetrics.md @@ -1779,8 +1779,9 @@ This aligns with the [staleness rules in Prometheus](https://prometheus.io/docs/ If multiple raw samples have **the same timestamp** on the given `-dedup.minScrapeInterval` discrete interval, then the sample with **the biggest value** is kept. -Prometheus stale markers are respected as any other value. If raw sample with the biggest timestamp on `-dedup.minScrapeInterval` -has a stale marker as a value - it will be kept after the deduplication. +[Prometheus stalenes markers](https://docs.victoriametrics.com/vmagent.html#prometheus-staleness-markers) are processed as any other value during de-duplication. +If raw sample with the biggest timestamp on `-dedup.minScrapeInterval` contains a stale marker, then it is kept after the deduplication. +This allows properly preserving staleness markers during the de-duplication. Please note, [labels](https://docs.victoriametrics.com/keyConcepts.html#labels) of raw samples should be identical in order to be deduplicated. For example, this is why [HA pair of vmagents](https://docs.victoriametrics.com/vmagent.html#high-availability)