Not sure if I fully understand what you are wanting to do but if you are wanting to average the count of transactions per minute then you could use the value_count aggregation instead of the sum aggregation inside your date_histogram aggregation
Thanks for the correct response.
My use case is now that I got the number of transactions per second using value_count. I need to find the percentage of requests/second falling under say 0-2 , 2-4 , 4-6 , 6-8, 8-10.
That is, what is the percentage of requests /second falling under those ranges.
How do I compute this?
Here requests -> gives me the request per second.
Using the stats_bucket, I am able to find count,min,max,sum,average.
Now i need to find the percentages of requests/second under 0-2 , 2-4 , 4-6 , 6-8, 8-10(dynamic ranges) etc requests/second. Is this possible using Elasticsearch.
Unfortunately we don't currently have a percentile_ranks_bucket pipeline aggregation which is the aggregation you would need to do this. We do have a percentiles_bucket aggregation which answers the opposite question: How much requests/second does 20%, 50%, 90% etc. of the values fall under.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.