# Where did DEM Consumption go?

**URL:** <https://community.dynatrace.com/t/where-did-dem-consumption-go/38756>\
**Category:** Real User Monitoring\
**Tags:** user-sessions, licensing\
**Created:** [March 9, 2023, 4:18am UTC](https://community.dynatrace.com/t/where-did-dem-consumption-go/38756 "2023-03-09T04:18:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![soportetr](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@soportetr](https://community.dynatrace.com/u/soportetr)\
**Post date:** [March 9, 2023, 4:18am UTC](https://community.dynatrace.com/t/where-did-dem-consumption-go/38756/1 "2023-03-09T04:18:57Z")

</div>

Hi Everyone,

I was browsing through the tenants of the clients but when I got to a specific one, I realized that the amount of DEM’s they have consumed is not displayed. However, when hovering the cursor over the area, the amount consumed is displayed. In addition to that, it is possible to visualize the user sessions, the executions of the synthetics, so there is no problem on that side. For this anomaly, have you seen something similar?

I’ll attach some screenshots for more details

 ![dems-1.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/5/75cb654173236bcc86619c7fa7a002823679022c.png)  
 ![consumption-breakdown.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/d87c28a101589a00b272580669f82c778b47bd69.png)

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [March 9, 2023, 6:40am UTC](https://community.dynatrace.com/t/where-did-dem-consumption-go/38756/2 "2023-03-09T06:40:17Z")

</div>

Hi&nbsp;[@soportetr](https://community.dynatrace.com/user/41008)

In order to visualize&nbsp;the use of DEM license you can utilize&nbsp;_billing.apps_ metrics

 ![Yosi_Neuman_0-1678343780656.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/e/5ed0a5a3e5c29c26f5904cea25a201427a3c78c2.png)

and&nbsp;_billing.synthetic_

 ![Yosi_Neuman_1-1678343883867.png](https://global.discourse-cdn.com/dynatrace/original/1X/6fed3c81d65e1de36681ece12fb5d1e40b06a885.png)

HTH

Yos

---

<div class="post-metadata">

**Author:** ![Romanenkov\_Al3x](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_al3x/32/36257_2.png) [@Romanenkov\_Al3x](https://community.dynatrace.com/u/Romanenkov_Al3x)\
**Post date:** [March 9, 2023, 7:42am UTC](https://community.dynatrace.com/t/where-did-dem-consumption-go/38756/3 "2023-03-09T07:42:19Z")

</div>

It is look like that Synthetic use your license and maybe somebody deleted this synthetic monitor and now it is not visible.

For example browser path with many actions for example with 20 actions of load.

Consumption: 20 x 1 x N runs

> **[Digital Experience Monitoring (DEM units)](https://docs.dynatrace.com/docs/license/classic-licensing/digital-experience-monitoring-units)**
>
> Understand how Dynatrace Digital Experience Monitoring consumption is calculated based on DEM units.

If audit logs is enabled for this environment you can try to find WHO and WHEN with this API call-&nbsp;[Audit logs API - GET audit log — Dynatrace Docs](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/audit-logs/get-log#audit-logs-api-get-audit-log)

Regards,

Romanenkov Alex

---

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [March 9, 2023, 11:52am UTC](https://community.dynatrace.com/t/where-did-dem-consumption-go/38756/4 "2023-03-09T11:52:12Z")

</div>

Hi soportetr,

Regarding the issue in view of the DEM units’ consumption on the environment, I think you need to reach out to Dynatrace support for that.

also, you can create a dashboard to monitor your DEM consumption same as the following sample and you can adjust the custom time frame to start from the license renewal date, ex. (2022-05-20 00:00 to now)

 ![Mohamed_Hamdy_0-1678362718043.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/f/ffc157d122bd8092f5c79203b5feae7237af3789.png)

---

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [March 9, 2023, 11:55am UTC](https://community.dynatrace.com/t/where-did-dem-consumption-go/38756/5 "2023-03-09T11:55:31Z")

</div>

you can use the following metrics ad examples and adjust them based on your requirements:

TOTAL DEM

(builtin:billing.synthetic.actions:splitBy():value:auto:sort(value(sum,descending)))+  
(builtin:billing.synthetic.requests:splitBy():value:auto:sort(value(sum,descending))\*0.1)+  
(builtin:billing.apps.mobile.sessionsWithoutReplayByApplication:filter(and(eq(Type,Billed))):splitBy():value:auto:sort(value(sum,descending))\*0.25)+  
(builtin:billing.apps.custom.sessionsWithoutReplayByApplication:filter(and(eq(Type,Billed))):splitBy():value:auto:sort(value(sum,descending))\*0.25)+  
(builtin:billing.apps.web.sessionsWithoutReplayByApplication:filter(and(eq(Type,Billed))):splitBy():value:auto:sort(value(sum,descending))\*0.25)

WEB APP WITHOUT REPLY  
(builtin:billing.apps.web.sessionsWithoutReplayByApplication:filter(and(eq(Type,Billed))):splitBy():value:auto:sort(value(sum,descending))\*0.25)

WEB APP WITH REPLY  
(builtin:billing.apps.web.sessionsWithReplayByApplication:filter(and(eq(Type,Billed))):splitBy():value:auto:sort(value(sum,descending)))

USER ACTIONS PROPERTIES WEB  
(builtin:billing.apps.web.userActionPropertiesByApplication:splitBy():value:auto:sort(value(sum,descending))\*0.01)

MOBILE APP WITHOUT REPLY  
(builtin:billing.apps.mobile.sessionsWithoutReplayByApplication:filter(and(eq(Type,Billed))):splitBy():value:auto:sort(value(sum,descending))\*0.25)

---

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [March 9, 2023, 12:02pm UTC](https://community.dynatrace.com/t/where-did-dem-consumption-go/38756/6 "2023-03-09T12:02:12Z")

</div>

MOBILE APP WITH REPLY  
(builtin:billing.apps.mobile.sessionsWithReplayByApplication:filter(and(eq(Type,Billed))):splitBy():value:auto:sort(value(sum,descending)))

USER ACTIONS PROPERTIES MOBILE  
(builtin:billing.apps.mobile.userActionPropertiesByMobileApplication:splitBy():value:auto:sort(value(sum,descending))\*0.01)

CUSTOM APP  
(builtin:billing.apps.custom.sessionsWithoutReplayByApplication:filter(and(eq(Type,Billed))):splitBy():value:auto:sort(value(sum,descending))\*0.25)

USER ACTIONS PROPERTIES CUSTOM  
(builtin:billing.apps.custom.userActionPropertiesByDeviceApplication:splitBy():value:auto:sort(value(sum,descending))\*0.01)

SYNTHETIC  
(builtin:billing.synthetic.actions:splitBy():value:auto:sort(value(sum,descending)))+  
(builtin:billing.synthetic.requests:splitBy():value:auto:sort(value(sum,descending))\*0.1)

SYNTHETIC THIRD-PARTY  
(builtin:billing.synthetic.external:splitBy():value:auto:sort(value(sum,descending))\*0.1)

---

<div class="post-metadata">

**Author:** ![Ingrida](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ingrida/32/13926_2.png) [@Ingrida](https://community.dynatrace.com/u/Ingrida)\
**Post date:** [October 19, 2023, 1:11pm UTC](https://community.dynatrace.com/t/where-did-dem-consumption-go/38756/7 "2023-10-19T13:11:29Z")

</div>

Awesome&nbsp;[@Mohamed\_Hamdy](https://community.dynatrace.com/user/4007)&nbsp;,

Thanks a lot for this. Spend hours today looking how to display DEM’s consumption and create Warnings for it. Just maybe one remark:

after I copy+pasted your request I got no results (as some metrics in my environment are not collected), so I added :default(0) after each auto to fill up metrics

BR,

I.
