简体   繁体   中英

ES pipeline aggregation - combining multiple buckets

This is what I want to do: Let's say I am collecting disk usage metrics. Documents in elasticsearch have fields [ @timestamp, cluster, disk, host, value ]. Value is number of bytes used on a disk at given timestamp.

Now, as host have multiple disks and I am interested in total disk usage per host. The disk usage value is a gauge. Therefore I need to do a MAX aggregation over date histogram and then SUM all disks for cluster+host term bucket.

I am failing to figure out an aggregation for this. How can this be done with elasticseach?

According to information I got on elasticsearch IRC chat, this is not possible at all. Such aggregation must be performed by application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM