VictoriaMetrics/lib/streamaggr
Ivan Yurochko 60ac4e0c00
lib/streamaggr: add ignore_first_sample_interval param for streamaggr cfg (#7313)
### Describe Your Changes

As of right now by default aggregated output in streaming aggregation
takes a staleness interval and only starts sending first samples after
the staleness interval passes. We have a use case where we prefer to
start sending data as soon as we have any. This adds the option to
configure when we start sending first samples

https://github.com/VictoriaMetrics/VictoriaMetrics/issues/7116

### Checklist

The following checks are **mandatory**:

- [x] My change adheres [VictoriaMetrics contributing
guidelines](https://docs.victoriametrics.com/contributing/).

---------

Co-authored-by: hagen1778 <roman@victoriametrics.com>
2024-11-22 17:38:13 +01:00
..
avg.go lib/streamaggr: remove resetState arg from aggrState.flushState() 2024-08-07 11:46:49 +02:00
count_samples.go lib/streamaggr: remove resetState arg from aggrState.flushState() 2024-08-07 11:46:49 +02:00
count_series.go lib/streamaggr: remove resetState arg from aggrState.flushState() 2024-08-07 11:46:49 +02:00
dedup.go lib/streamaggr: prevent from data race inside dedupAggrShard when samplesBuf can be updated in pushSamples() while their values are read in the flush() loop without das.mu lock 2024-06-11 17:31:38 +02:00
dedup_test.go lib/streamaggr: reduce memory allocations by using dedupAggrSample buffer per each dedupAggrShard 2024-06-10 16:39:26 +02:00
dedup_timing_test.go lib/streamaggr: reduce the number of duplicates per each sample in BenchmarkDedupAggr from 100 to 2 2024-06-10 16:39:26 +02:00
deduplicator.go app/vmagent/remotewrite: follow-up for f153f54d11 2024-07-15 20:25:36 +02:00
deduplicator_test.go app/vmagent/remotewrite,lib/streamaggr: re-use common code in tests after 879771808b 2024-07-03 15:22:51 +02:00
deduplicator_timing_test.go lib/streamaggr: added stale samples metric, added metrics labels (#6462) 2024-07-01 15:01:49 +02:00
histogram_bucket.go lib/streamaggr: remove resetState arg from aggrState.flushState() 2024-08-07 11:46:49 +02:00
last.go lib/streamaggr: remove resetState arg from aggrState.flushState() 2024-08-07 11:46:49 +02:00
max.go lib/streamaggr: remove resetState arg from aggrState.flushState() 2024-08-07 11:46:49 +02:00
min.go lib/streamaggr: remove resetState arg from aggrState.flushState() 2024-08-07 11:46:49 +02:00
quantiles.go lib/streamaggr: remove resetState arg from aggrState.flushState() 2024-08-07 11:46:49 +02:00
rate.go lib/streamaggr: remove resetState arg from aggrState.flushState() 2024-08-07 11:46:49 +02:00
stddev.go lib/streamaggr: remove resetState arg from aggrState.flushState() 2024-08-07 11:46:49 +02:00
stdvar.go lib/streamaggr: remove resetState arg from aggrState.flushState() 2024-08-07 11:46:49 +02:00
streamaggr.go lib/streamaggr: add ignore_first_sample_interval param for streamaggr cfg (#7313) 2024-11-22 17:38:13 +01:00
streamaggr_test.go lib/streamaggr: add ignore_first_sample_interval param for streamaggr cfg (#7313) 2024-11-22 17:38:13 +01:00
streamaggr_timing_test.go tests: fix slice init length (#6897) 2024-08-30 11:18:21 +02:00
sum_samples.go lib/streamaggr: remove resetState arg from aggrState.flushState() 2024-08-07 11:46:49 +02:00
total.go lib/streamaggr: add ignore_first_sample_interval param for streamaggr cfg (#7313) 2024-11-22 17:38:13 +01:00
unique_samples.go lib/streamaggr: remove resetState arg from aggrState.flushState() 2024-08-07 11:46:49 +02:00