# Alert when application traffic drops to zero, but don't alert at quiet times.

**URL:** <https://community.dynatrace.com/t/alert-when-application-traffic-drops-to-zero-but-dont-alert-at-quiet-times/53133>\
**Category:** Alerting\
**Tags:** anomaly-detection\
**Created:** [August 27, 2025, 2:39pm UTC](https://community.dynatrace.com/t/alert-when-application-traffic-drops-to-zero-but-dont-alert-at-quiet-times/53133 "2025-08-27T14:39:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DannyH](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@DannyH](https://community.dynatrace.com/u/DannyH)\
**Post date:** [August 27, 2025, 2:39pm UTC](https://community.dynatrace.com/t/alert-when-application-traffic-drops-to-zero-but-dont-alert-at-quiet-times/53133/1 "2025-08-27T14:39:08Z")

</div>

We had an issue where one of our applications had no traffic for 2 hours due to a genuine problem. We got no alert from the anomaly detection we had set up for Dynatrace traffic drops.

Dynatrace support said that was because we had no traffic at all rather than a drop from one figure to another so DT will not alert on 0 traffic.

I was advised to set up a metric event using auto-adaptive setting. I have it set to alert if metric is below and to alert on missing data.

This is the metric selector code used -&nbsp;builtin:apps.web.actionsPerSession:filter(in(“dt.entity.application”,entitySelector(“type(application),entityName.equals(~“Aspire~”)”)))

Trouble is it is alerting a lot, every time there are 0 user actions in the application. I’ve messed about with sliding windows and signal fluctuations but still alert spam.

I was hoping and told the auto-adaptive would know not to alert at quiet times.

Any suggestions how to get this to work? I’m surprised Dynatrace doesn’t alert out of the box on zero traffic to an application for a sustained period.

---

<div class="post-metadata">

**Author:** ![Akhil-Jayendran](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/akhil-jayendran/32/153_2.png) [@Akhil-Jayendran](https://community.dynatrace.com/u/Akhil-Jayendran)\
**Post date:** [August 29, 2025, 1:23am UTC](https://community.dynatrace.com/t/alert-when-application-traffic-drops-to-zero-but-dont-alert-at-quiet-times/53133/2 "2025-08-29T01:23:30Z")

</div>

Hi&nbsp;[@DannyH](https://community.dynatrace.com/user/53090)&nbsp;,

You may want to experiment with the traffic drop setting&nbsp;on the frontend app. but if it is&nbsp;&nbsp;no traffic at all rather than a drop might not be useful .

[https://community.dynatrace.com/t5/Real-User-Monitoring/How-application-traffic-drops-is-calculated/m-p/261302#:~:text=Dynatrace%20automatically%20learns%20each%20application’s,learn%20daily%20and%20weekly%20patterns](https://community.dynatrace.com/post/261302#:~:text=Dynatrace%20automatically%20learns%20each%20application's,learn%20daily%20and%20weekly%20patterns).

If you have the data in Grail, maybe we could use DQL to run a comparison of the previous 1-hour timeframe and send an alert if there is any drop

---

<div class="post-metadata">

**Author:** ![DannyH](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@DannyH](https://community.dynatrace.com/u/DannyH)\
**Post date:** [September 4, 2025, 1:21pm UTC](https://community.dynatrace.com/t/alert-when-application-traffic-drops-to-zero-but-dont-alert-at-quiet-times/53133/3 "2025-09-04T13:21:19Z")

</div>

Hi Akhil,

Thanks for the reply. Yeah it was to get an alert when there was no traffic at all that I needed, thats why it has to be a metric event with, “Alert on missing data” turned on.

I’ve actually got a better metric selector string now based on total count rather than average. It works better, but still alerts at night when the application is quiet. I thought the auto-adaptive threshold would know when the app is quiet from historic data, but it doesn’t seem to. Any idea why that is? I’ve set up a maintenance window anyway for OOH.

This is the metric selector

builtin:apps.web.action.count.load.browser:filter(and(or(in(“dt.entity.application\_method”,entitySelector(“type(application\_method),entityName.equals(~“loading of page /auth/dashboard~”)”))))):splitBy():sort(value(auto,descending)):limit(20)

---

<div class="post-metadata">

**Author:** ![g\_kat](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/g_kat/32/34573_2.png) [@g\_kat](https://community.dynatrace.com/u/g_kat)\
**Post date:** [September 10, 2025, 1:36pm UTC](https://community.dynatrace.com/t/alert-when-application-traffic-drops-to-zero-but-dont-alert-at-quiet-times/53133/4 "2025-09-10T13:36:21Z")

</div>

Hi [@DannyH](https://community.dynatrace.com/user/53090)&nbsp;,

From experience, auto-adaptive threshold isn’t all that smart. It performs a statistical calculation daily for the last [7 days](https://docs.dynatrace.com/docs/discover-dynatrace/platform/davis-ai/anomaly-detection/concepts/auto-adaptive-threshold).&nbsp;If there are no data, I believe it does nothing to identify a threshold for that window.

Maybe, if you want to fiddle around, you could set up in your query selector the default(0) transformation. This way, instead of NULL data you will have 0 which can be evaluated for a threshold and then auto-adaptive maybe adjust the threshold for night.

Maintenance windows are a good backup plan too.

George
