Graphing CPU usage from Metricbeat

I'm working with metricbeat and system.cpu.*.pct - I would like to either

  1. graph all of them in a single area chart, or
  2. consider a scripted field to sum the non-idle ones and graph that figure.

I don't know how to do 1. and I've been unable to make scripted fields work. I've tried this:

  • click Add Scripted Field, enter mycustomfield in Name

  • Enter this in Script (just two values to test):
    .

    doc['system.cpu.system.pct'].value + doc['system.cpu.user.pct'].value

  • Go hunting in Discover and Visualize for my field, in vain

Can anyone help me? Thanks,
Greg.

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