简体   繁体   English

ES管道聚合 - 组合多个桶

[英]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 ]. elasticsearch中的文档具有[@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. 因此,我需要在日期直方图上进行MAX聚合,然后对集群+主机术语桶进行SUM所有磁盘。

I am failing to figure out an aggregation for this. 我没有弄清楚这个聚合。 How can this be done with elasticseach? 如何使用elasticseach完成这项工作?

According to information I got on elasticsearch IRC chat, this is not possible at all. 根据我在弹性搜索IRC聊天中获得的信息,这根本不可能。 Such aggregation must be performed by application. 这种聚合必须由应用程序执行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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