# Graphing CPU usage from Metricbeat

**URL:** <https://discuss.elastic.co/t/graphing-cpu-usage-from-metricbeat/65300>\
**Category:** Kibana\
**Created:** [November 8, 2016, 6:09am UTC](https://discuss.elastic.co/t/graphing-cpu-usage-from-metricbeat/65300 "2016-11-08T06:09:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregoryo](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@gregoryo](https://discuss.elastic.co/u/gregoryo)\
**Post date:** [November 8, 2016, 6:09am UTC](https://discuss.elastic.co/t/graphing-cpu-usage-from-metricbeat/65300/1 "2016-11-08T06:09:18Z")

</div>

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):  
.

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

Can anyone help me? Thanks,  
Greg.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 6, 2016, 6:09am UTC](https://discuss.elastic.co/t/graphing-cpu-usage-from-metricbeat/65300/2 "2016-12-06T06:09:25Z")

</div>

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