This is a plugin for Kibana 5.x. It is based on the core Metric-Plugin but gives you the ability to output custom aggregates on metric-results by using custom formula and/or JavaScript.
(only works for some Kibana 5.x-versions (sorry, I don't have the time to release a new version for every update, but you can choose the closest version and simply adjust the version-number in the package.json
))
5.0.0
$ ./bin/kibana-plugin install https://github.com/ommsolutions/kibana_ext_metrics_vis/releases/download/0.1.0/extended_metric_vis.zip
5.5.0
$ ./bin/kibana-plugin install https://github.com/ommsolutions/kibana_ext_metrics_vis/releases/download/5.5.0/kibana_ext_metrics_vis_5.5.0.zip
5.5.2
$ ./bin/kibana-plugin install https://github.com/ommsolutions/kibana_ext_metrics_vis/releases/download/5.5.2/kibana_ext_metrics_vis_5.5.2.zip
5.6.5
$ ./bin/kibana-plugin install https://github.com/ommsolutions/kibana_ext_metrics_vis/releases/download/5.6.5/kibana_ext_metrics_vis_5.6.5.zip
(for other versions: e.g. 5.1.0)
Extract the ZIP into a new folder in your kibana/plugins
-directory.
Simply delete that folder and restart kibana.