# Alert Notification for Excessive Database Instructions in Specific Requests

**URL:** <https://community.dynatrace.com/t/alert-notification-for-excessive-database-instructions-in-specific-requests/51497>\
**Category:** Alerting\
**Tags:** problem-notification, anomaly-detection\
**Created:** [May 6, 2025, 11:03am UTC](https://community.dynatrace.com/t/alert-notification-for-excessive-database-instructions-in-specific-requests/51497 "2025-05-06T11:03:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![istvan\_safranek](https://avatars.discourse-cdn.com/v4/letter/i/ed655f/32.png) [@istvan\_safranek](https://community.dynatrace.com/u/istvan_safranek)\
**Post date:** [May 6, 2025, 11:03am UTC](https://community.dynatrace.com/t/alert-notification-for-excessive-database-instructions-in-specific-requests/51497/1 "2025-05-06T11:03:40Z")

</div>

Hello!  
Is it possible to send an alert when the number of specific database statement in a specific request exceeds for example 20?

---

<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:** [May 7, 2025, 5:46pm UTC](https://community.dynatrace.com/t/alert-notification-for-excessive-database-instructions-in-specific-requests/51497/2 "2025-05-07T17:46:03Z")

</div>

I recommend taking at look at the extensions creator where you can create a DB query to look for that type of data. If you can report on that and provide a value, then you can create a Davis Anomaly Detector that will then trigger an alert based off the settings you provide.

You just might need a DBA to help you with the query and the connection Creds.

---

<div class="post-metadata">

**Author:** ![istvan\_safranek](https://avatars.discourse-cdn.com/v4/letter/i/ed655f/32.png) [@istvan\_safranek](https://community.dynatrace.com/u/istvan_safranek)\
**Post date:** [May 8, 2025, 6:22am UTC](https://community.dynatrace.com/t/alert-notification-for-excessive-database-instructions-in-specific-requests/51497/3 "2025-05-08T06:22:07Z")

</div>

Hi Chad,

I forget to mention that I have dynatrace managed. Is this solution valid there?

---

<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:** [May 8, 2025, 11:46am UTC](https://community.dynatrace.com/t/alert-notification-for-excessive-database-instructions-in-specific-requests/51497/4 "2025-05-08T11:46:01Z")

</div>

Correct, 99% of the functionality/settings is the same from Managed to SaaS. That 1% difference would be attributed to storage, retention values, backups etc on Managed which is configurable in the CMC since you own and provide the servers.

SaaS, since you dont own the servers, do not have the ability to configure those 1% of settings.

---

<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:** [May 9, 2025, 8:42am UTC](https://community.dynatrace.com/t/alert-notification-for-excessive-database-instructions-in-specific-requests/51497/5 "2025-05-09T08:42:41Z")

</div>

Hi&nbsp;[@istvan\_safranek](https://community.dynatrace.com/user/11521)

IMO you can focus on your desired database statement from [Multi Dimensional Analysis](https://docs.dynatrace.com/managed/shortlink/multidimensional-analysis) &nbsp;(AKA MDA) and create a [calculate metric](https://docs.dynatrace.com/managed/shortlink/multidimensional-analysis#calculated-service-metric) on it.

 ![Yosi_Neuman_0-1746779961779.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/e/ae4ccc0dbbd7b2c505644dbdb616696be7b4cc22.png)

Then you can set a [metric event](https://docs.dynatrace.com/managed/shortlink/metric-events) on this calculated metric

HTH

Yos

---

<div class="post-metadata">

**Author:** ![istvan\_safranek](https://avatars.discourse-cdn.com/v4/letter/i/ed655f/32.png) [@istvan\_safranek](https://community.dynatrace.com/u/istvan_safranek)\
**Post date:** [May 29, 2025, 1:58pm UTC](https://community.dynatrace.com/t/alert-notification-for-excessive-database-instructions-in-specific-requests/51497/6 "2025-05-29T13:58:38Z")

</div>

**Thank you for your response Yos!**  
However, I believe there might have been a misunderstanding. My question was specifically about triggering an alert when the number of a certain type of database statement within a&nbsp;_single request_&nbsp;exceeds a threshold (e.g., more than 20 times in one request).

The suggestion regarding Multi Dimensional Analysis and calculated metrics is appreciated, but it seems to focus more on aggregated data rather than per-request behavior.

Do you happen to know if there’s a way to monitor and alert on this kind of per-request pattern?

Thanks again for your time!
