# Threshold Based custom alerts

**URL:** <https://community.dynatrace.com/t/threshold-based-custom-alerts/34597>\
**Category:** Alerting\
**Tags:** threshold, problems-classic\
**Created:** [March 24, 2022, 1:58am UTC](https://community.dynatrace.com/t/threshold-based-custom-alerts/34597 "2022-03-24T01:58:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohan](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@Rohan](https://community.dynatrace.com/u/Rohan)\
**Post date:** [March 24, 2022, 1:58am UTC](https://community.dynatrace.com/t/threshold-based-custom-alerts/34597/1 "2022-03-24T01:58:13Z")

</div>

Hello,

Thank you for taking time to look into this situation i am stuck with, I need to implement Threshold based custom alerts

The idea is :

1. CPU Usage % goes up 70% It should generate “Warning” or “Low” Severity alert.

2. CPU Usage % goes up 90% It should generate “Critical” or “High” Severity alert.

Right now based on the alert profile - As soon as CPU Usage % hits more than 90% . It ends up generating two alerts “Warning” and “Critical” both since both satisfy the condition. There’s no option to implement “between 70% - 80%”.

**Expectation is to have One Alert triggered in an event CPU Usage % hits more than 90% and that should be “Critical” only - not two alerts.**

So i seek your opinion in this matter on how this can be fixed? The Alerts are then being sent to Pager Duty just an FYI.

Regards,

---

<div class="post-metadata">

**Author:** ![mrc15816](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mrc15816](https://community.dynatrace.com/u/mrc15816)\
**Post date:** [March 24, 2022, 2:47am UTC](https://community.dynatrace.com/t/threshold-based-custom-alerts/34597/2 "2022-03-24T02:47:20Z")

</div>

[@Rohan](https://community.dynatrace.com/user/48822)&nbsp;we went thru this hurdle as we were migrating from legacy BMC product. At this time you cannot achieve like for a like where you could generate the alerting based on threshold. I believe there is a RFE to provide some of this functionality. You can only achieve some with custom alerting ex. CPU but you can’t do that for memory as Dynatrace looks at 2 metrics (Memory usage & Swap - Composite) before triggering an alert. If you are entering into AIX you might be little bummed.

---

<div class="post-metadata">

**Author:** ![Sujit](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sujit/32/15043_2.png) [@Sujit](https://community.dynatrace.com/u/Sujit)\
**Post date:** [March 24, 2022, 4:32am UTC](https://community.dynatrace.com/t/threshold-based-custom-alerts/34597/3 "2022-03-24T04:32:01Z")

</div>

[@Rohan](https://community.dynatrace.com/user/48822)&nbsp;Ideally there is no option is Dynatrace to send alert as WARNING or SEVERE, it sends alert without any priority or severity. I have no idea about PagerDuty but i have configured similar requirement in ServerNow where there is mechanism to segregate alert based on the severity through workflow.

Thanks,

Sujit

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [April 18, 2022, 4:28pm UTC](https://community.dynatrace.com/t/threshold-based-custom-alerts/34597/4 "2022-04-18T16:28:52Z")

</div>

[@Rohan](https://community.dynatrace.com/user/48822)It’s not the ideal use of this, but you can try to define an [SLO:](https://www.dynatrace.com/support/help/shortlink/objectives-hub)

I’ve made an example for you, I choose CPU idle metric, you can filter the hosts by tag or entityID, and set the target to 10 and 30 (because you are using idle metric)

 ![DanielS_0-1650299091208.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/c/ccde507e58db9bf02a0c546083f2ec14909cd75f.png)

Then you can try it with evaluate:

 ![DanielS_1-1650299125547.png](https://global.discourse-cdn.com/dynatrace/original/2X/f/f113e9d8bbf2788e7282a4f5a1647393063bf604.png)

I’ve never use this with this purpose, but it can work. Please let us know.
