# Aggregated CPU User and System Load Percentage

**URL:** <https://discuss.elastic.co/t/aggregated-cpu-user-and-system-load-percentage/75307>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [February 16, 2017, 9:42am UTC](https://discuss.elastic.co/t/aggregated-cpu-user-and-system-load-percentage/75307 "2017-02-16T09:42:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prakash1243](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@prakash1243](https://discuss.elastic.co/u/prakash1243)\
**Post date:** [February 16, 2017, 9:42am UTC](https://discuss.elastic.co/t/aggregated-cpu-user-and-system-load-percentage/75307/1 "2017-02-16T09:42:47Z")

</div>

Am trying to get a sum value of CPU USER and CPU SYSTEM percentage thru Ruby client.  
Is there any single API parameter to pull out the both the values ? I believe, it does have 2 separate parameters.

I wanted to check, cpu load (system+user) have crossed 85%, if yes, how many instances.  
Please let me know.

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [February 17, 2017, 7:16am UTC](https://discuss.elastic.co/t/aggregated-cpu-user-and-system-load-percentage/75307/2 "2017-02-17T07:16:30Z")

</div>

I was thinking you could use a script query for that to add the two fields together? [https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-script-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-script-query.html)

Not 100% sure if this will work so best try it first out in the console and then translate it to a ruby query.

---

<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:** [March 17, 2017, 7:16am UTC](https://discuss.elastic.co/t/aggregated-cpu-user-and-system-load-percentage/75307/3 "2017-03-17T07:16:52Z")

</div>

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