How to use scripted metric aggregation in kibana

I was working on an example given in the following link:
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-scripted-metric-aggregation.html

I have gotten the script working, now am trying to use the scripted metric aggregation in kibana and but am unable to find any working tutorial on the same, would really appreciate some pointers as to how I can display the scripted metric aggregation(saved in ES), in kibana?

Scripted metrics aggregation is not supported directly from Kibana today:

1 Like

Hi @tbragin, if we cannot visualize the result of a scripted_metric aggregation in Kibana, what is its intended use?