VictoriaMetrics/lib/streamaggr
Zakhar Bessarab 9e99f2f5b3
lib/streamaggr: discard samples with timestamps outside of aggregation interval (#4199)
* lib/streamaggr: discard samples with timestamps not matching aggregation interval

Samples with timestamps lower than `now - aggregation_interval` are likely to be written via backfilling and should not be used for calculation of aggregation.
See #4068

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>

* lib/streamaggr: make log message more descriptive, fix imports

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>

---------

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>
2023-04-27 11:59:49 +02:00
..
avg.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
count_samples.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
count_series.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
histogram_bucket.go lib/streamaggr: remove unused fields 2023-01-04 13:33:46 -08:00
increase.go lib/streamaggr: remove unused fields 2023-01-04 13:33:46 -08:00
last.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
max.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
min.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
quantiles.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
stddev.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
stdvar.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
streamaggr.go lib/streamaggr: discard samples with timestamps outside of aggregation interval (#4199) 2023-04-27 11:59:49 +02:00
streamaggr_test.go lib/streamaggr: discard samples with timestamps outside of aggregation interval (#4199) 2023-04-27 11:59:49 +02:00
streamaggr_timing_test.go lib/streamaggr: add ability to de-duplicate input samples before aggregation 2023-01-25 09:14:49 -08:00
sum_samples.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
total.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00