# How to make an alert for the JVM CPU usage?

**URL:** <https://discuss.elastic.co/t/how-to-make-an-alert-for-the-jvm-cpu-usage/311933>\
**Category:** APM\
**Tags:** elastic-stack-alerting, java, ui\
**Created:** [August 11, 2022, 1:59pm UTC](https://discuss.elastic.co/t/how-to-make-an-alert-for-the-jvm-cpu-usage/311933 "2022-08-11T13:59:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamuelSMendes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samuelsmendes/32/104246_2.png) [@SamuelSMendes](https://discuss.elastic.co/u/SamuelSMendes)\
**Post date:** [August 11, 2022, 1:59pm UTC](https://discuss.elastic.co/t/how-to-make-an-alert-for-the-jvm-cpu-usage/311933/1 "2022-08-11T13:59:37Z")

</div>

Version: 7.17.3 Elastic Cloud

Hello everyone, I have a Java Agent running on apm and I want to set an alert for the CPU usage of the JVM. Is there any way to approach it? Been trying by the Alerts app in Kibana but couldn't make it happen with logs threshold and metrics of sorts.

I'll be glad if theres anyone to help on this.

---

<div class="post-metadata">

**Author:** ![hendry.lim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hendry.lim/32/71328_2.png) [@hendry.lim](https://discuss.elastic.co/u/hendry.lim)\
**Post date:** [August 15, 2022, 2:48am UTC](https://discuss.elastic.co/t/how-to-make-an-alert-for-the-jvm-cpu-usage/311933/2 "2022-08-15T02:48:30Z")

</div>

Are you using APM integration (Fleet) or APM standalone server?

If you are using APM integration (Fleet), you can make use of the metrics threshold rule type in Kibana.

For JVM CPU usage it will be the process CPU in APM events.

---

<div class="post-metadata">

**Author:** ![SamuelSMendes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samuelsmendes/32/104246_2.png) [@SamuelSMendes](https://discuss.elastic.co/u/SamuelSMendes)\
**Post date:** [August 15, 2022, 4:31am UTC](https://discuss.elastic.co/t/how-to-make-an-alert-for-the-jvm-cpu-usage/311933/3 "2022-08-15T04:31:07Z")

</div>

Thanks a lot, that was exactly what I needed.

---

<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:** [September 5, 2022, 12:31am UTC](https://discuss.elastic.co/t/how-to-make-an-alert-for-the-jvm-cpu-usage/311933/4 "2022-09-05T00:31:56Z")

</div>

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