docs: mention staleNaN handling during deduplication

See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5587

Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
Artem Navoiev 2024-01-08 20:20:09 +01:00 committed by Aliaksandr Valialkin
parent 59ab3efc2b
commit e1005209ba
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -25,6 +25,8 @@ func isDedupEnabled() bool {
}
// DeduplicateSamples removes samples from src* if they are closer to each other than dedupInterval in milliseconds.
// DeduplicateSamples treats StaleNaN (Prometheus stale markers) as values and doesn't skip them on purpose - see
// https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5587
func DeduplicateSamples(srcTimestamps []int64, srcValues []float64, dedupInterval int64) ([]int64, []float64) {
if !needsDedup(srcTimestamps, dedupInterval) {
// Fast path - nothing to deduplicate