# Configure Relative and Absolute Alert Thresholds in Dynatrace

**URL:** <https://community.dynatrace.com/t/configure-relative-and-absolute-alert-thresholds-in-dynatrace/18825>\
**Category:** Alerting\
**Tags:** dynatrace-managed, threshold, problems-classic\
**Created:** [March 19, 2020, 8:41pm UTC](https://community.dynatrace.com/t/configure-relative-and-absolute-alert-thresholds-in-dynatrace/18825 "2020-03-19T20:41:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MevlutS](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@MevlutS](https://community.dynatrace.com/u/MevlutS)\
**Post date:** [March 19, 2020, 8:41pm UTC](https://community.dynatrace.com/t/configure-relative-and-absolute-alert-thresholds-in-dynatrace/18825/1 "2020-03-19T20:41:42Z")

</div>

_Summary:&nbsp;This post explains how relative and absolute thresholds work in Dynatrace alerting. It provides examples and best practices for setting thresholds to reduce false positives._

Hi All,

I have a question related to the automatic threshold baseline and also the relative and absolute thresholds.

The first question is how Dynatrace calculates the automatic baseline, is the learning time 7 days?

And what exactly are the relative and absolute thresholds? I can understand how they are calculated, but I couldn’t understand exactly what these are. Can you clarify it for me? Thank you.

Best Regards,

Mevlüt

---

<div class="post-metadata">

**Author:** ![dave\_mauney](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dave_mauney/32/27784_2.png) [@dave\_mauney](https://community.dynatrace.com/u/dave_mauney)\
**Post date:** [March 19, 2020, 9:37pm UTC](https://community.dynatrace.com/t/configure-relative-and-absolute-alert-thresholds-in-dynatrace/18825/2 "2020-03-19T21:37:46Z")

</div>

The baseline is calculated over a 7 day rolling window. The calculation starts immediately and gets more refined over time until it can finally compare the current Monday to the previous Monday when it has a week of data. Low/High Traffic problems will not be raised until a week has passed since initial data collection for the application/service. Response Time and Failure problems will be raised after 20% of a week.

Relative and Absolute refer to thresholds set based on the deviation from the baseline, not the baseline itself.

An example of absolute would be 100 ms. An example of relative would be 50%.

Absolute means a concrete number. Relative means a percentage increase.

More details here:

[https://www.dynatrace.com/support/help/shortlink/automated-baselining](https://www.dynatrace.com/support/help/shortlink/automated-baselining?_ga=2.208921425.2103123329.1583773939-1546782883.1553891917)

> **[Adjust the sensitivity of anomaly detection](https://docs.dynatrace.com/docs/dynatrace-intelligence/anomaly-detection/adjust-sensitivity-anomaly-detection)**
>
> Learn how to adapt the sensitivity of problem detection in Dynatrace.

Hope this helps,

dave

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [June 17, 2022, 10:00am UTC](https://community.dynatrace.com/t/configure-relative-and-absolute-alert-thresholds-in-dynatrace/18825/3 "2022-06-17T10:00:47Z")

</div>

Hi Dave,

So, focusing on Response Time, absolute theshold means that if the response time of baseline in the last 7 days exceded of 100ms it raises an alert, right?

And, for example, if we increase the absolute threshold from 100ms to 1000ms, an alert was raised if the response time of the baseline exceded of 1 sec in the last 7 days, right?

Regards,

Elena.

---

<div class="post-metadata">

**Author:** ![munawarhossain1](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@munawarhossain1](https://community.dynatrace.com/u/munawarhossain1)\
**Post date:** [March 14, 2024, 8:56am UTC](https://community.dynatrace.com/t/configure-relative-and-absolute-alert-thresholds-in-dynatrace/18825/4 "2024-03-14T08:56:16Z")

</div>

On that is this calc right showcased over AD?

 ![munawarhossain1_0-1710406517468.png](https://global.discourse-cdn.com/dynatrace/original/2X/0/0d24da451d93ff281a8c8873d84eed6567766f5a.png)

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [March 14, 2024, 10:35am UTC](https://community.dynatrace.com/t/configure-relative-and-absolute-alert-thresholds-in-dynatrace/18825/5 "2024-03-14T10:35:36Z")

</div>

The baselining is not taking the average or median of the 7 days.

The baseline detection mechanism employs observation periods of&nbsp; **5 minutes** &nbsp;and&nbsp; **15 minutes**. This approach ensures that any detected baseline event must endure for at least 5 minutes, thereby preventing the generation of alerts for transient metric fluctuations.

---

<div class="post-metadata">

**Author:** ![n\_maheshkumar](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/n_maheshkumar/32/33485_2.png) [@n\_maheshkumar](https://community.dynatrace.com/u/n_maheshkumar)\
**Post date:** [June 26, 2024, 7:26am UTC](https://community.dynatrace.com/t/configure-relative-and-absolute-alert-thresholds-in-dynatrace/18825/6 "2024-06-26T07:26:18Z")

</div>

Threshold&nbsp;for failurerate and response time of&nbsp;service&nbsp;has configured AI based. To avoid over alerting, atleast 10 request should be available for 1 min and abnormal should be available for 5 min period( can able&nbsp; to change delay) **Response Time** :Two conditions ( All req and slowest 10%) are available. It will create problem if either of the condition meets **All requests** Alert if the median response time of all requests degrades beyond&nbsp; **both** &nbsp;the absolute(100ms) and relative&nbsp;thresholds(50%):\*\*Slowest 10%**Alert if the response time of the slowest 10% of requests degrades beyond&nbsp;both&nbsp;the absolute(1000ms) and relative&nbsp;thresholds(100%):**Failure Rate:\*\*Alert if the percentage of failing&nbsp;service&nbsp;calls increases by&nbsp; **both** &nbsp;the absolute(0%) and relative&nbsp;thresholds(50%):\*Absolute and Relative&nbsp;thresholds:\*Absolute&nbsp;threshold&nbsp;means the&nbsp;threshold&nbsp;we set manually. Relative&nbsp;threshold&nbsp;is the deviation % from auto generated baseline’s reference value. Auto generated baseline has been detected by past 7 days data and baseline will be different for each request or htm and each&nbsp;service.Example 1:&nbsp; Resptime: 100 ms of absolute&nbsp;threshold&nbsp;and 50% relative. auto baseline detected is 60ms. actual resptime is 95ms. It will not generate alert. Because value should cross both absolute and relative.absolute 100 ms , Relative = 60ms (auto baseline) + 30 ms (50% of auto baseline) = 90 ms. So if actual respTime is 95 ms. It will not trigger alert. Because relative breached but absolute value is not breached.Example 2: FailureRate: 0% of absolute&nbsp;threshold&nbsp;and 50% relative. auto baseline detected is 0.15%. actual failure% is 0.45%. It will generate alert. Because value has crossed the both absolute and relative.absolute 0% , Relative = 0.15% (auto baseline) + 0.075 (50% of auto baseline) = 0.23%. So if actual Failure rate is 0.45%. It will trigger alert. Because relative and absolute value is breached.
