Edit a personal metric by kibana


(marwa) #1

Hi ,i am trying to create visualizations with kibana but when i want to use metrics i had just found a classical ones such as sum , average, min ,max... my question is if for example i had in a document a field called quantity and a field called price_unit and i want to use a metric that calculates the revenue = quantity * price_unit can i edit this metric by kibana or not ??? any help please !!!


(kulkarni) #2

You could achieve this by using the Advanced Json input for Kibana charts. Here, I could link you to a more detailed discussion on advanced Json input. It will query Elasticsearch for the data, and then the formula is performed in the script based on the values from elasticsearch. Feel free to come back with more questions if you have.

Thanks
Rashmi


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.