Count is not present as an aggregation operator #293

Open
ghost opened this Issue Mar 7, 2014 · 2 comments

3 participants

@ghost

Currently tsdb has no way to give the total number of points it has encountered between the start time and endtime provided in search. A count function in the aggregator drop down or as json (with retrieved points and plotted points) Would be very useful

Thanks and Regards,
mayur

@gnydick

I implemented it myself, it was pretty trivial. Just copy the SUM aggregator, change the runLong and runDouble methods to just set the result=1 outside of the loop, then within the loop, set result+=1.

Viola!

This was referenced Aug 4, 2015
@DanielWebster

This is solved by #423 and will be in 2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment