How to sum fields value (mem used = user used + system used)


(michaelshi) #1

How to on line chart display memory usage. The acquisition of the back of the data memory is divided into user and system use, I think the combined display, but inside the metrics and did not provide several fields of polymerization method. There are other ways to solve it?

Thanks


How to format memory number to show
(Mark Walkom) #2

You can create a scripted field to do this for you - https://www.elastic.co/guide/en/kibana/current/managing-fields.html#create-scripted-field


(michaelshi) #3

Thanks very much


(Mark Walkom) #4

When you get it working how you want please do share the result, it may help someone else too! :smiley:


(michaelshi) #5

I am very sorry, I forgot to post on how to solve the problem
Can refer to the following steps

1> Scripted fields tab sheet, click button 'Add Script Field'
2>name :input the unique name
Format: choice bytes
Script : doc['cpu.used'].value + doc['cpu.system'].value
3>click 'Create Field'

And then reference the field at the interface.

Thanks


(system) #6