# Is it possible to apply threshold to Process CPU based on the usage we analyzed

**URL:** <https://community.dynatrace.com/t/is-it-possible-to-apply-threshold-to-process-cpu-based-on-the-usage-we-analyzed/41727>\
**Category:** Open Q&A\
**Tags:** processes\
**Created:** [September 21, 2023, 3:27pm UTC](https://community.dynatrace.com/t/is-it-possible-to-apply-threshold-to-process-cpu-based-on-the-usage-we-analyzed/41727 "2023-09-21T15:27:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Athira](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@Athira](https://community.dynatrace.com/u/Athira)\
**Post date:** [September 21, 2023, 3:27pm UTC](https://community.dynatrace.com/t/is-it-possible-to-apply-threshold-to-process-cpu-based-on-the-usage-we-analyzed/41727/1 "2023-09-21T15:27:17Z")

</div>

I want to know is there any feature in Dynatrace that allows to apply threshold settings for CPU consumption for a&nbsp; Process.

---

<div class="post-metadata">

**Author:** ![natanael\_mendes](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/natanael_mendes/32/15264_2.png) [@natanael\_mendes](https://community.dynatrace.com/u/natanael_mendes)\
**Post date:** [September 21, 2023, 3:30pm UTC](https://community.dynatrace.com/t/is-it-possible-to-apply-threshold-to-process-cpu-based-on-the-usage-we-analyzed/41727/2 "2023-09-21T15:30:55Z")

</div>

You can do this on the host level

Take a look on the documentation page

> **[Host anomaly detection](https://docs.dynatrace.com/docs/observe/infrastructure-observability/hosts/configuration/anomaly-detection)**
>
> Configure host anomaly detection, including problem and event thresholds.

go to host\>settings\>anomaly detection

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [September 21, 2023, 5:50pm UTC](https://community.dynatrace.com/t/is-it-possible-to-apply-threshold-to-process-cpu-based-on-the-usage-we-analyzed/41727/3 "2023-09-21T17:50:04Z")

</div>

If you are looking to impose an alert criteria on a process that runs on a host and alert on the process consumption outside of the host overall consumption, it can be done via Custom Metric Events:

 ![ChadTurner_0-1695318538394.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/b88429d11ae153a4b4aff71d860ed286db93b64a.png)

go to settings\>anomaly detection\>Metric Events - and add one in 🙂

---

<div class="post-metadata">

**Author:** ![Athira](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@Athira](https://community.dynatrace.com/u/Athira)\
**Post date:** [September 26, 2023, 11:26am UTC](https://community.dynatrace.com/t/is-it-possible-to-apply-threshold-to-process-cpu-based-on-the-usage-we-analyzed/41727/4 "2023-09-26T11:26:34Z")

</div>

hi Chad, i have setup’d Custom Metric Events, to generate alerts for generic.cpu.totalTime , but i’m observing the alerts are raised for the The Process total CPU time value of 0 µs.

i have applied Static threshold of 14Mins, still the alert are raised for&nbsp;The Process total CPU time value of 0 µs was above your custom threshold of 14 min.

Can you advise, what settings or attributes can be configured to alert only when the CPU time cross the threshold

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [September 26, 2023, 11:58am UTC](https://community.dynatrace.com/t/is-it-possible-to-apply-threshold-to-process-cpu-based-on-the-usage-we-analyzed/41727/5 "2023-09-26T11:58:28Z")

</div>

Can you share a screen shot of the metric event you created? It should look something like this:

 ![ChadTurner_0-1695729494490.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/b581bfbdef85d97c50f5c4b4d68548cf55fc756b.png)

---

<div class="post-metadata">

**Author:** ![Athira](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@Athira](https://community.dynatrace.com/u/Athira)\
**Post date:** [September 26, 2023, 12:48pm UTC](https://community.dynatrace.com/t/is-it-possible-to-apply-threshold-to-process-cpu-based-on-the-usage-we-analyzed/41727/6 "2023-09-26T12:48:20Z")

</div>

please see the snaps attached

 ![2023-09-26_18-17-17.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/c/dca71e2dfaa333a900ab930a9d33b4418387850a.png)  
 ![2023-09-26_18-16-14.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/7/07c24d92aa6e1209b2a3cdd7c09fd9239cb83f73.png)

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [September 26, 2023, 7:07pm UTC](https://community.dynatrace.com/t/is-it-possible-to-apply-threshold-to-process-cpu-based-on-the-usage-we-analyzed/41727/7 "2023-09-26T19:07:07Z")

</div>

Sorry for the delay, been pretty busy today. The reason why you are being alerted even at the 0 Upsidedow "h"s is because you have selected to be alerted on missing data. I suspect that there is occasionally a delay in the metrics being passed for example its looking for data every 1 min, 8:00 data arrives, 8:01 no data, 8:02 no data - At this point an alert is triggered, 8:03 current data and missing data from 8:01 and 8:02 shows up, giving you the illusion there was no gap in data but there was.

Turn off the alert on missing data and see if your problems go away.
