# practical question about custom metrics and mz

**URL:** <https://community.dynatrace.com/t/practical-question-about-custom-metrics-and-mz/50652>\
**Category:** Open Q&A\
**Tags:** management-zones, dynatrace-managed, processes, logs\
**Created:** [March 11, 2025, 10:11am UTC](https://community.dynatrace.com/t/practical-question-about-custom-metrics-and-mz/50652 "2025-03-11T10:11:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [March 11, 2025, 10:11am UTC](https://community.dynatrace.com/t/practical-question-about-custom-metrics-and-mz/50652/1 "2025-03-11T10:11:10Z")

</div>

Hello who can help me?

I have created a metric based on log lines having a certain attribute. With this I want to create an event with Davis abnomaly detection.

Is there any way to get this event/problem in a MZ?

I have tried many options…

KR Henk

---

<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:** [March 11, 2025, 12:24pm UTC](https://community.dynatrace.com/t/practical-question-about-custom-metrics-and-mz/50652/2 "2025-03-11T12:24:05Z")

</div>

Hey&nbsp;[@henk\_stobbe](https://community.dynatrace.com/user/11427)&nbsp;! I’m assuming you have already built the metric extraction. When you created that, it should have asked you to name it. You should be able to find that named metric in your data explorer. If you can see it in the Data Explorer, then you should be able to create the Davis Anomaly Detector for the alert overall.

 ![ChadTurner_0-1741695689367.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/f/5f4ab695f5b7694b4a056e38cf0e7ae657060c33.png)

 ![ChadTurner_1-1741695713790.png](https://global.discourse-cdn.com/dynatrace/original/1X/fce1d8c05133c255f8a091f9b6bd02492061aa8f.png)

 ![ChadTurner_2-1741695800693.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/4/b45cdbc54ebaf760818424673c8a16b3f38b3f89.png)

In order to get this metric associated with a management zone, or the new segments, you will need to add it in using Dimensions with the Management Zones:

 ![ChadTurner_3-1741695826097.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/c/2c0fa1b0e4e9a42d2690b2d1d048de75ad760af5.png)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [March 11, 2025, 2:25pm UTC](https://community.dynatrace.com/t/practical-question-about-custom-metrics-and-mz/50652/3 "2025-03-11T14:25:43Z")

</div>

Hi Chad,

Thanks for your reply, I also added a MZ with below selector:

![henk_stobbe_0-1741702996279.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/9/f9801c9edc092f59bfa52aa1951252d659733a88.png)

but still the problems all end up in:

![henk_stobbe_1-1741703102125.png](https://global.discourse-cdn.com/dynatrace/original/1X/b48e93c94daf66e0fc464cc8eeff3bec10a95402.png)

what am I doing wrong )-;

KR Henk

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [March 11, 2025, 2:35pm UTC](https://community.dynatrace.com/t/practical-question-about-custom-metrics-and-mz/50652/4 "2025-03-11T14:35:23Z")

</div>

[https://community.dynatrace.com/t5/Open-Q-A/Map-Custom-Metric-to-Management-Zone/m-p/207706](https://community.dynatrace.com/post/207706)

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [March 11, 2025, 3:05pm UTC](https://community.dynatrace.com/t/practical-question-about-custom-metrics-and-mz/50652/5 "2025-03-11T15:05:23Z")

</div>

Sorry, I now notice the metric is in the MZ, but I assume when a Problem is created this info is not used?

---

<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:** [March 11, 2025, 3:26pm UTC](https://community.dynatrace.com/t/practical-question-about-custom-metrics-and-mz/50652/6 "2025-03-11T15:26:29Z")

</div>

I see, you are looking to link the entity in the Problem Card? Try to build your DAD with DQL where it enriches the data to outline the source etc.
