# Low Traffic Alert

**URL:** <https://community.dynatrace.com/t/low-traffic-alert/52791>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, problem-detection\
**Created:** [August 4, 2025, 6:38pm UTC](https://community.dynatrace.com/t/low-traffic-alert/52791 "2025-08-04T18:38:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![HeyEngineer](https://avatars.discourse-cdn.com/v4/letter/h/53a042/32.png) [@HeyEngineer](https://community.dynatrace.com/u/HeyEngineer)\
**Post date:** [August 4, 2025, 6:38pm UTC](https://community.dynatrace.com/t/low-traffic-alert/52791/1 "2025-08-04T18:38:20Z")

</div>

Have a service/request that team wants an alert if we don’t see any traffic for it in 24 hours.&nbsp; It’s little volume for the Anomaly Detection in Davis.&nbsp; Custom Alert only allows for traffic to be evaluated every 60 mins.&nbsp; Does anyone know a way this can be accomplished?&nbsp; &nbsp;Seems like something that we should be able to accomplish.

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [August 5, 2025, 5:13am UTC](https://community.dynatrace.com/t/low-traffic-alert/52791/2 "2025-08-05T05:13:44Z")

</div>

Dynatrace doesn’t natively support a 24-hour no-traffic alert, as the missing data alert only works with a maximum sliding window of 60 minutes. This can be worked around by combining hourly alerts with external logic (example by workflow or script) to detect the absence of data over a full day.

Radek

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [August 5, 2025, 5:51am UTC](https://community.dynatrace.com/t/low-traffic-alert/52791/3 "2025-08-05T05:51:35Z")

</div>

[@HeyEngineer](https://community.dynatrace.com/user/73347)&nbsp;Try with the below DQL in detector and see if it helps . For the threshold set to alert if metric is below “1”.&nbsp; I haven’t tired it myself , but I guess should work

```markup
timeseries { request_count= sum(dt.service.request.count), total_request_count = sum(dt.service.request.count, scalar: true) },
from: now() - 24h,interval:1m, by: { dt.entity.service, endpoint.name }, 
filter: { matchesValue(entityAttr(dt.entity.service, "entity.name"), "SERVICE_XXXX") AND matchesValue(endpoint.name, "endponit_XXXX") }

```

 ![p_devulapalli_0-1754372822742.png](https://global.discourse-cdn.com/dynatrace/original/2X/3/326534e5df38525c73e1d1377733b62760f6e48b.png)

 ![p_devulapalli_1-1754373159375.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/5/651524aa938b0936794b7a3d6d9b02b2a64ec9dd.png)

---

<div class="post-metadata">

**Author:** ![kalle\_lahtinen](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@kalle\_lahtinen](https://community.dynatrace.com/u/kalle_lahtinen)\
**Post date:** [August 5, 2025, 7:06am UTC](https://community.dynatrace.com/t/low-traffic-alert/52791/4 "2025-08-05T07:06:20Z")

</div>

In case you’re using Managed and DQL is not an option, you can also query the data via API like this:

```markup
https://<your_dynatrace>/api/v2/metrics/query?metricSelector=<your_selector>&resolution=inf&from=now-1d&to=now&Api-Token=<your_token>

```

So the above example queries a single value for the time period of last 24 hours. How to implement this in practise:

1. First test around in Data Explorer to get the selector you want, use the time frame of 24 hours for this

2. Modify the above API query with your selector and other parameters (Dynatrace endpoint,&nbsp;API token with Read Metrics rights)

3. Configure a synthetic monitor which executes that API query and parses the returned value

---

<div class="post-metadata">

**Author:** ![HeyEngineer](https://avatars.discourse-cdn.com/v4/letter/h/53a042/32.png) [@HeyEngineer](https://community.dynatrace.com/u/HeyEngineer)\
**Post date:** [August 7, 2025, 3:07pm UTC](https://community.dynatrace.com/t/low-traffic-alert/52791/5 "2025-08-07T15:07:11Z")

</div>

Thanks for reply. Here’s where I am.&nbsp; &nbsp;Need below to return a zero for the total\_request\_count when the ORs statement is not found.&nbsp; Been trying to use the nonempty(request\_count, 0) however, getting stuck.&nbsp; End goal is to then place this in workbook and run it once a day and alert if any of ORs return zero.&nbsp; Can you help?

timeseries { request\_count= sum(dt.service.request.count), total\_request\_count = sum(dt.service.request.count, scalar: true) },  
from: now() -24h,interval:1m, by: { dt.entity.service, endpoint.name},&nbsp;  
filter: {matchesValue(entityAttr(dt.entity.service, “entity.name”), “entity.name”) AND&nbsp;  
&nbsp; &nbsp; &nbsp; matchesValue(endpoint.name, “endpoint.nameA”) &nbsp;OR matchesValue(endpoint.name, “endpoint.nameB”)&nbsp;  
&nbsp; &nbsp;OR matchesValue(endpoint.name, “endpoint.nameC”) &nbsp;OR matchesValue(endpoint.name, “endpoint.nameD”)  
)},

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [August 8, 2025, 1:16am UTC](https://community.dynatrace.com/t/low-traffic-alert/52791/6 "2025-08-08T01:16:07Z")

</div>

[@HeyEngineer](https://community.dynatrace.com/user/73347)&nbsp;This is a tricky one, I’ve tried multiple scenarios but could not get it working correctly . Will let you know if something works for me

---

<div class="post-metadata">

**Author:** ![HeyEngineer](https://avatars.discourse-cdn.com/v4/letter/h/53a042/32.png) [@HeyEngineer](https://community.dynatrace.com/u/HeyEngineer)\
**Post date:** [August 9, 2025, 3:08pm UTC](https://community.dynatrace.com/t/low-traffic-alert/52791/7 "2025-08-09T15:08:44Z")

</div>

Could you please provide an example of how I can use query this in a workflow?&nbsp; Also unable to get a zero return if data is not found. Just doesn’t return at all.

//need to return zero for total\_request\_count if OR match is not found&nbsp;//FJTtimeseries {request\_count= sum(dt.service.request.count), total\_request\_count = sum(dt.service.request.count, scalar: true)},from: now() -24h,interval:1m, by: { dt.entity.service, endpoint.name},&nbsp;filter: {matchesValue(entityAttr(dt.entity.service, “entity.name”), “EntityName”) AND&nbsp;&nbsp; &nbsp; &nbsp; matchesValue(endpoint.name, “EndPointOne”)&nbsp; OR matchesValue(endpoint.name, “EndPointTwo”)}&nbsp;&nbsp; //nonempty:true
