# Create monitoring for frontend when there are no sessions for X amount of time

**URL:** <https://community.dynatrace.com/t/create-monitoring-for-frontend-when-there-are-no-sessions-for-x-amount-of-time/50591>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, user-actions, application-monitoring, user-sessions\
**Created:** [March 6, 2025, 10:36am UTC](https://community.dynatrace.com/t/create-monitoring-for-frontend-when-there-are-no-sessions-for-x-amount-of-time/50591 "2025-03-06T10:36:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KVL](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@KVL](https://community.dynatrace.com/u/KVL)\
**Post date:** [March 6, 2025, 10:36am UTC](https://community.dynatrace.com/t/create-monitoring-for-frontend-when-there-are-no-sessions-for-x-amount-of-time/50591/1 "2025-03-06T10:36:08Z")

</div>

We had an issue recently where due to ngnix version upgrade dynatrace injection was not happening in the frontend applications and we found out about it by chance.

Note that we do have “Detect traffic drops” enabled, and yet no problem was opened for this.

Is there some way to create a monitor where if there’s no user actions for more than 1 hour for example, then alert?

---

<div class="post-metadata">

**Author:** ![marco\_irmer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marco_irmer/32/3038_2.png) [@marco\_irmer](https://community.dynatrace.com/u/marco_irmer)\
**Post date:** [March 7, 2025, 9:09pm UTC](https://community.dynatrace.com/t/create-monitoring-for-frontend-when-there-are-no-sessions-for-x-amount-of-time/50591/2 "2025-03-07T21:09:05Z")

</div>

You can use DQL to list out applications along with when they were first and last seen. The lifetime[end] field will give you the last time Dynatrace received a datapoint for that application.

```cpp
fetch dt.entity.application
| fieldsAdd lifetime

```

 ![marco_irmer_1-1741381731748.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/c/6c2619bc5ba27870b753990b39ff7b1b0e45a9e2.png)

By adding your own logic for calculating how long it’s been since the app was last seen, you should be able to set up a Davis Anomaly Detector or Workflow to enable alerting.
