promql-engine icon indicating copy to clipboard operation
promql-engine copied to clipboard

Implement aggregation operations

Open sharadgaur opened this issue 3 years ago • 2 comments

Following functions need to be implemented:

  • [x] group (all values in the resulting vector are 1)~
  • [x] stddev (calculate population standard deviation over dimensions)
  • [x] stdvar (calculate population standard variance over dimensions)
  • [x] count (count number of elements in the vector)~
  • [ ] count_values (count number of elements with the same value)
  • [x] bottomk (smallest k elements by sample value)
  • [x] topk (largest k elements by sample value)
  • [x] quantile

sharadgaur avatar Sep 27 '22 14:09 sharadgaur

One note here, we have group and count already. It is easier to start with stddev and stdvar as they takes a range vector only, while count_values, bottomk and topk need to take additional parameters so probably we can wait for https://github.com/thanos-community/promql-engine/issues/23

yeya24 avatar Sep 27 '22 15:09 yeya24

Hi,

I did not see this issue before so i opened a new one for bottomK and topK. Those aggregations seems to need some additional work so i think it should be fine to track those there?

alanprot avatar Nov 01 '22 00:11 alanprot

Closing as all aggregations are added nowadays!

MichaHoffmann avatar Jun 26 '24 19:06 MichaHoffmann