# ES agent doesn't feed "host.cpu.usage" metric when CPU loading 100%

**URL:** <https://discuss.elastic.co/t/es-agent-doesnt-feed-host-cpu-usage-metric-when-cpu-loading-100/332231>\
**Category:** Elastic Agent\
**Tags:** metricbeat\
**Created:** [May 2, 2023, 9:21am UTC](https://discuss.elastic.co/t/es-agent-doesnt-feed-host-cpu-usage-metric-when-cpu-loading-100/332231 "2023-05-02T09:21:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickywong](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@rickywong](https://discuss.elastic.co/u/rickywong)\
**Post date:** [May 2, 2023, 9:21am UTC](https://discuss.elastic.co/t/es-agent-doesnt-feed-host-cpu-usage-metric-when-cpu-loading-100/332231/1 "2023-05-02T09:21:33Z")

</div>

Hi teams,

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/f/cf26339711d6031e1b5113bfcfa114907759e658.png)  
Once my VM CPU loading is up to 100%, ES agent can't feed log to ES cloud. So the detection rules can't work as well. How to solve this problem?

Thanks  
Ricky

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 2, 2023, 9:26am UTC](https://discuss.elastic.co/t/es-agent-doesnt-feed-host-cpu-usage-metric-when-cpu-loading-100/332231/2 "2023-05-02T09:26:36Z")

</div>

Looks like you are overloading the cluster, so either reduce the load or assign more resources.

---

<div class="post-metadata">

**Author:** ![rickywong](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@rickywong](https://discuss.elastic.co/u/rickywong)\
**Post date:** [May 2, 2023, 9:52am UTC](https://discuss.elastic.co/t/es-agent-doesnt-feed-host-cpu-usage-metric-when-cpu-loading-100/332231/3 "2023-05-02T09:52:07Z")

</div>

The ES cloud cluster was not overloading.

Actually it's my monitoring target VM (installed with ES agent) was overloading, and I found during the timeframe of 100% CPU overload, there is no any metrics were ingested. So no detection can be triggered in this timeframe.

Thanks  
Ricky

---

<div class="post-metadata">

**Author:** ![rickywong](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@rickywong](https://discuss.elastic.co/u/rickywong)\
**Post date:** [May 3, 2023, 1:03am UTC](https://discuss.elastic.co/t/es-agent-doesnt-feed-host-cpu-usage-metric-when-cpu-loading-100/332231/4 "2023-05-03T01:03:39Z")

</div>

Maybe I elaborate not good enough before. When my target monitoring host (with ES agent installed) CPU is up to 100% load, I found the metric "host.cpu.usage" is no longer to be found in the data feeding in. So basically the CPU load detection rule can't be triggered.

I would like to see any experience for you guys to handle such situation? Thanks!

 ![case](https://us1.discourse-cdn.com/elastic/original/3X/a/c/ac73913bbf8055c44e8d405edcc6ad75cba477ff.jpeg)

---

<div class="post-metadata">

**Author:** ![Agi\_K\_Thomas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/agi_k_thomas/32/130842_2.png) [@Agi\_K\_Thomas](https://discuss.elastic.co/u/Agi_K_Thomas)\
**Post date:** [May 8, 2023, 3:56am UTC](https://discuss.elastic.co/t/es-agent-doesnt-feed-host-cpu-usage-metric-when-cpu-loading-100/332231/5 "2023-05-08T03:56:17Z")

</div>

In situations like that, [no-data alerts](https://www.elastic.co/guide/en/kibana/current/rule-type-index-threshold.html) can generate alerts.

Additional resource for your reference is [here](https://www.elastic.co/guide/en/kibana/current/alerting-getting-started.html#alerting-concepts-conditions)

---

<div class="post-metadata">

**Author:** ![Agi\_K\_Thomas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/agi_k_thomas/32/130842_2.png) [@Agi\_K\_Thomas](https://discuss.elastic.co/u/Agi_K_Thomas)\
**Post date:** [May 8, 2023, 4:00am UTC](https://discuss.elastic.co/t/es-agent-doesnt-feed-host-cpu-usage-metric-when-cpu-loading-100/332231/6 "2023-05-08T04:00:45Z")

</div>

You may configure index threshold alert if the number of documents in your index is lower than some specific value for a specific time interval.

---

<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:** [June 5, 2023, 4:01am UTC](https://discuss.elastic.co/t/es-agent-doesnt-feed-host-cpu-usage-metric-when-cpu-loading-100/332231/7 "2023-06-05T04:01:03Z")

</div>

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