Weighted Average Aggregation Support in Rollup

Current version of Es Rollup API have no support for percentiles or weighted averages.
It would be of great help if any plan to include the features in future versions or any tentative time line is shared

Hi. You're correct, neither of those are supported at the moment. There's a github ticket tracking the ability to add "datastructure-based" metrics like percentiles and cardinality: https://github.com/elastic/elasticsearch/issues/33214

As for weighted average... I bet we could support that without too much work... it should be simpler than more complex metrics like percentiles/cardinality. I think it would be mostly like the regular average today (saving sum + count), except we'll also have to accumulate the weight. I'll take a look and file a ticket.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.