# Auto-adaptive threshold/Seasonal baseline Metric event with threshold

**URL:** <https://community.dynatrace.com/t/auto-adaptive-threshold-seasonal-baseline-metric-event-with-threshold/47974>\
**Category:** Alerting\
**Tags:** metric-events, anomaly-detection, problems-classic\
**Created:** [September 25, 2024, 1:48pm UTC](https://community.dynatrace.com/t/auto-adaptive-threshold-seasonal-baseline-metric-event-with-threshold/47974 "2024-09-25T13:48:11Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![kobkob](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@kobkob](https://community.dynatrace.com/u/kobkob)\
**Post date:** [September 25, 2024, 1:48pm UTC](https://community.dynatrace.com/t/auto-adaptive-threshold-seasonal-baseline-metric-event-with-threshold/47974/1 "2024-09-25T13:48:11Z")

</div>

Hi,

Is there any way to create&nbsp;Auto-adaptive threshold/Seasonal baseline Metric events that will be triggered only if the value is greater than X?

Thanks

---

<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:** [September 25, 2024, 2:22pm UTC](https://community.dynatrace.com/t/auto-adaptive-threshold-seasonal-baseline-metric-event-with-threshold/47974/2 "2024-09-25T14:22:55Z")

</div>

Do you mean a mix of thresholds and baselines?  
If the baseline event does not reach threshold X?

---

<div class="post-metadata">

**Author:** ![kobkob](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@kobkob](https://community.dynatrace.com/u/kobkob)\
**Post date:** [September 25, 2024, 2:44pm UTC](https://community.dynatrace.com/t/auto-adaptive-threshold-seasonal-baseline-metric-event-with-threshold/47974/3 "2024-09-25T14:44:58Z")

</div>

[@PacoPorro](https://community.dynatrace.com/user/40713)&nbsp;exactly

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [September 26, 2024, 9:27am UTC](https://community.dynatrace.com/t/auto-adaptive-threshold-seasonal-baseline-metric-event-with-threshold/47974/4 "2024-09-26T09:27:45Z")

</div>

Hi,

Create both?&nbsp;&nbsp;[Auto-adaptive + static threshold](https://docs.dynatrace.com/docs/shortlink/anomaly-detection-adaptive-threshold#auto-adaptive-vs-static-threshold)?

Best regards

---

<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:** [September 26, 2024, 11:21am UTC](https://community.dynatrace.com/t/auto-adaptive-threshold-seasonal-baseline-metric-event-with-threshold/47974/5 "2024-09-26T11:21:12Z")

</div>

AFAIK this is not possible, probably you can check if you can implement something using slos

---

<div class="post-metadata">

**Author:** ![kobkob](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@kobkob](https://community.dynatrace.com/u/kobkob)\
**Post date:** [September 29, 2024, 6:39am UTC](https://community.dynatrace.com/t/auto-adaptive-threshold-seasonal-baseline-metric-event-with-threshold/47974/6 "2024-09-29T06:39:46Z")

</div>

[@AntonPineiro](https://community.dynatrace.com/user/58682)&nbsp;Its not an option since the static threshold for one service is not relevant for another, and I have thousands of microservices.

---

<div class="post-metadata">

**Author:** ![kobkob](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@kobkob](https://community.dynatrace.com/u/kobkob)\
**Post date:** [October 1, 2024, 6:22am UTC](https://community.dynatrace.com/t/auto-adaptive-threshold-seasonal-baseline-metric-event-with-threshold/47974/7 "2024-10-01T06:22:13Z")

</div>

I saw this in the metric event settings:

 ![kobkob_0-1727763652690.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/a/da5c120bdd445921442866e92aced9de970b8f72.png)

Anyone know what exactly it affects?

---

<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:** [October 1, 2024, 11:08am UTC](https://community.dynatrace.com/t/auto-adaptive-threshold-seasonal-baseline-metric-event-with-threshold/47974/8 "2024-10-01T11:08:58Z")

</div>

The threshold, whether static or baseline, used for monitoring the metric.

---

<div class="post-metadata">

**Author:** ![kobkob](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@kobkob](https://community.dynatrace.com/u/kobkob)\
**Post date:** [October 1, 2024, 11:27am UTC](https://community.dynatrace.com/t/auto-adaptive-threshold-seasonal-baseline-metric-event-with-threshold/47974/9 "2024-10-01T11:27:09Z")

</div>

[@PacoPorro](https://community.dynatrace.com/user/40713)&nbsp;thanks for your answer. Can you please elaborate?

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 1, 2024, 11:48am UTC](https://community.dynatrace.com/t/auto-adaptive-threshold-seasonal-baseline-metric-event-with-threshold/47974/10 "2024-10-01T11:48:25Z")

</div>

Hello&nbsp;[@kobkob](https://community.dynatrace.com/user/66137)

**Let’s agree that:**

1. Auto-adaptive baselining can be configured to trigger alert as per the automatic baselining and reference periods,…etc.
2. Static-threshold which is decided and provided by the app owner to receive alerts upon specific value violation to take an action.
3. Seasonal thresholds can be configured as well to pickup the violations which haven’t been detected either through automatic baselining and static-based.
4. Common case for seasonal-baselining: marketing campaigns where excessive number of purchase, payment, delivery … etc requests are processed and executed by specific services, so you can create a metric events and make as info if you need to be notified, or if you need to have an alert created keep the event type as “custom alert”

**As a conclusion**

- You can create multiple metric events and choose where to receive alerts or not based on the actual use case.
- You can create multiple metric events, but ensure there is no conflict in the configurations to receive the accurate alerts.
- You can name the metric events if required ex: Exceeding processed requests during Black Friday.
- If you have a request attribute configured for example to fetch **purchased amounts** or other parameter of interest \> create multidimensional analysis view \> create a metric for example if the total purchased amounts exceeds 1M so you will be notified during the seasonal baselining.
- To create metric event: Manage \> Settings \> Anomaly Detection \> Metric events, and simply configure it in meaningful way to be notified and take prober actions.

Feel free to review&nbsp;[Seasonal Baselining](https://docs.dynatrace.com/managed/shortlink/anomaly-detection-seasonal-baseline)

KR,

Peter.

---

<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:** [October 1, 2024, 11:50am UTC](https://community.dynatrace.com/t/auto-adaptive-threshold-seasonal-baseline-metric-event-with-threshold/47974/11 "2024-10-01T11:50:21Z")

</div>

I recommend using the Davis Anomaly Detector in the new layout as it will not incur any limits etc on your allotment of metric events. Assuming your metric does not begin with ext:

---

<div class="post-metadata">

**Author:** ![rastislav\_danis](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@rastislav\_danis](https://community.dynatrace.com/u/rastislav_danis)\
**Post date:** [October 1, 2024, 2:11pm UTC](https://community.dynatrace.com/t/auto-adaptive-threshold-seasonal-baseline-metric-event-with-threshold/47974/12 "2024-10-01T14:11:48Z")

</div>

maybe you can try partition in metric selector to apply static threshold and then use baseline, f.e. for cpu util \>6% (i added default to fill the gaps with data):

```auto
builtin:host.cpu.usage:splitBy():auto:partition("cpuhigh",value("gt6",gt(6))):default(6)

```

---

<div class="post-metadata">

**Author:** ![kobkob](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@kobkob](https://community.dynatrace.com/u/kobkob)\
**Post date:** [October 6, 2024, 12:16pm UTC](https://community.dynatrace.com/t/auto-adaptive-threshold-seasonal-baseline-metric-event-with-threshold/47974/13 "2024-10-06T12:16:29Z")

</div>

[@rastislav\_danis](https://community.dynatrace.com/user/38440)&nbsp;I think this is what I was looking for!&nbsp;Ill defently try it and update if it worked. Thanks a lot!
