VictoriaMetrics/docs/changelog
Zakhar Bessarab 11af902b22
lib/storage/downsampling: handle dedup separately from downsampling rules with filters
Previously, dedup was added as a downsampling rule with 0s offset to all downsmapling rules with filters. That enforced a metric name lookup even in cases it is not needed.
For example, the following configuration: `-dedup.minScrapeInterval=10s -downsampling.period={__name__=~"node.*"}:1h:1m` would be parsed as: `{__name__=~"node.*"}:1h:1m {}:0s:10s`

This commit changes this logic and treats dedup as a separate case. This allows to perform metric name lookups only in cases when timestamp of current partition can be eligible to use some of downsampling filters. Newer parts will not trigger metric name lookup and will apply deduplication directly.

Related issue:
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/7440
---------
Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>
Co-authored-by: f41gh7 <nik@victoriametrics.com>
2024-11-15 17:56:47 +01:00
..
_index.md docs: move changelog to dir (#6853) 2024-08-21 17:26:54 +02:00
CHANGELOG_2020.md docs: spelling fixes (#7420) 2024-11-05 16:44:23 +01:00
CHANGELOG_2021.md docs: spelling fixes (#7420) 2024-11-05 16:44:23 +01:00
CHANGELOG_2022.md docs: spelling fixes (#7420) 2024-11-05 16:44:23 +01:00
CHANGELOG_2023.md docs: spelling fixes (#7420) 2024-11-05 16:44:23 +01:00
CHANGELOG.md lib/storage/downsampling: handle dedup separately from downsampling rules with filters 2024-11-15 17:56:47 +01:00