如何在 kibana(5.1.1) 中添加我们自己的指标表达式?

How add Our Own Metric Expression in kibana(5.1.1)?

公制聚合。默认情况下,我们有 Sum,count,avg,min,max,unique-count 等功能 我想添加自己的自定义功能假设 sum/Unique_count 如何实现它。

我想这需要更改代码。现在,所有 Kibana 指标都位于此处 - https://github.com/elastic/kibana/tree/master/src/ui/public/agg_types/metrics. So, you need to clone Kibana at first, than add your_own_metric.js, which will be similar to other built-in metrics. Later on, you need to add your metrics to index.js, under https://github.com/elastic/kibana/blob/master/src/ui/public/agg_types/index.js 并且希望在您构建 Kibana 之后,您可以使用它的自定义版本。

一些附加信息 - https://discuss.elastic.co/t/custom-metric-aggregation-plugin/70072/8