# Could dynatrace alert using the DEM  consumption metrics 100 \* (current consumption / annual limit)

**URL:** <https://community.dynatrace.com/t/could-dynatrace-alert-using-the-dem-consumption-metrics-100-current-consumption-annual-limit/43067>\
**Category:** Alerting\
**Tags:** problems-classic, licensing\
**Created:** [December 7, 2023, 10:00am UTC](https://community.dynatrace.com/t/could-dynatrace-alert-using-the-dem-consumption-metrics-100-current-consumption-annual-limit/43067 "2023-12-07T10:00:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![panda](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@panda](https://community.dynatrace.com/u/panda)\
**Post date:** [December 7, 2023, 10:00am UTC](https://community.dynatrace.com/t/could-dynatrace-alert-using-the-dem-consumption-metrics-100-current-consumption-annual-limit/43067/1 "2023-12-07T10:00:04Z")

</div>

We have set metric _dem.units.monthly.limit_ as 4k.

using this formula as current DEM consumption.

_(builtin:billing.synthetic.actions:splitBy():default(0,always))+(0.1\*(builtin:billing.synthetic.requests:splitBy():default(0,always)))+(builtin:billing.apps.web.sessionsWithReplayByApplication:splitBy():default(0,always))+0.25\*(builtin:billing.apps.web.sessionsWithoutReplayByApplication:splitBy():default(0,always))+(0.01\*(builtin:billing.apps.web.userActionPropertiesByApplication:splitBy():default(0,always)))+(0.1\*(builtin:billing.synthetic.external:splitBy():default(0,always)))_

**What I want to do:**  
I would like to monitor the consumption of DEM (Digital Experience Monitoring) for the current month/year and receive alerts via Slack or email if it approaches or exceeds a certain threshold (e.g., 60% of the dem.units.annual.limit or dem.units.monthly.limit).

How could I config it?

---

<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:** [February 13, 2024, 7:48pm UTC](https://community.dynatrace.com/t/could-dynatrace-alert-using-the-dem-consumption-metrics-100-current-consumption-annual-limit/43067/2 "2024-02-13T19:48:22Z")

</div>

[@panda](https://community.dynatrace.com/user/69325)&nbsp;I would recommend making some custom events for alerting (Metric Events) to alert off the criteria you are looking for. Basically if you can formulate it in the advanced mode of the data explorer, you can toss it into the Metric Events builder and define out how you’d like to get alerted on this be it Email, Slack ITOM etc..

Let me know if you need any assistance.

---

<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:** [February 13, 2024, 7:52pm UTC](https://community.dynatrace.com/t/could-dynatrace-alert-using-the-dem-consumption-metrics-100-current-consumption-annual-limit/43067/3 "2024-02-13T19:52:28Z")

</div>

Here is the sample:

 ![ChadTurner_0-1707853907167.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/f/9f5bb543ceaf78037654a2c85d3ce33bcbed300b.png)

Granted we left DEM and moved to DPS so my data is null but the method still works and will work for you 🙂

---

<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:** [February 13, 2024, 7:55pm UTC](https://community.dynatrace.com/t/could-dynatrace-alert-using-the-dem-consumption-metrics-100-current-consumption-annual-limit/43067/4 "2024-02-13T19:55:43Z")

</div>

If you are good with defining a static threshold that can be done via the above image. You also stated that you have created a metric being the monthly segment that adds in all those variables, you can always substitute it in the metric event as well.

---

<div class="post-metadata">

**Author:** ![Gosia\_Murawska](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@Gosia\_Murawska](https://community.dynatrace.com/u/Gosia_Murawska)\
**Post date:** [August 13, 2024, 10:27am UTC](https://community.dynatrace.com/t/could-dynatrace-alert-using-the-dem-consumption-metrics-100-current-consumption-annual-limit/43067/5 "2024-08-13T10:27:51Z")

</div>

Hi&nbsp;[@panda](https://community.dynatrace.com/user/69325)&nbsp;  
Have you managed to solve the problem? It would be great if you shared the solution with the Community users 💡
