Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion docs/changelog/143381.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,17 @@ area: Downsampling
issues:
- 136178
pr: 143381
summary: Aggregate counter downsampling preserves resets
summary: Rate calculation for downsampled counters becomes aware of counter resets when the `aggregate` sampling method is used.
type: enhancement
highlight:
title: Downsampling preserves the resets of counters when the `aggregate` sampling method is used.
body: |-
Until {es} `9.3`, both downsampling methods (`aggregate` and `last_value`) used to store only the last value of a counter
in the downsampled document. This works great for the `last_value` method where we optimise for storage efficiency, but
it is not ideal for the `aggregate` method where we optimise for accuracy.

In {es} `9.4`, we change the way the (default) `aggregate` sampling method is working. We store the first encountered
value for a counter in the downsampled document and then we add auxiliary documents when we detect counter resets.
This enables the rate calculation to take the counter resets into account and produce more accurate results. This change
is backwards compatible.
notable: true
Loading