# Problem with metric event

**URL:** <https://community.dynatrace.com/t/problem-with-metric-event/42465>\
**Category:** Open Q&A\
**Tags:** dynatrace-managed, problems-classic\
**Created:** [November 5, 2023, 5:59pm UTC](https://community.dynatrace.com/t/problem-with-metric-event/42465 "2023-11-05T17:59:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 5, 2023, 5:59pm UTC](https://community.dynatrace.com/t/problem-with-metric-event/42465/1 "2023-11-05T17:59:28Z")

</div>

Hi,

In one of my environments, I need to send an alert when metrics are not sent from Azure to Dynatrace. I have a basic integration with Azure configured and am collecting information about the VMs (CPU, memory, disk). Unfortunately, no metrics are available to inform me, for example, that a VM has been shut down or restarted. We have prepared a metrics event that has the “Alert in missing data” option enabled.

_builtin:cloud.azure.vm.cpuUsage:filter(and(not(in(“dt.entity.azure\_vms,entitySelector(“type(azure\_vm),tag(~”(Azure)V:XXXX~”)"))))):splitBy(“dt.entity.azure\_vm”)))_

Of course, the threshold is 101% CPU utilisation so that it does not report other deviations.

 ![Zrzut ekranu 2023-11-5 o 18.45.55.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/1/b1c860ec25d1e017755e49b43cd195acc9b03624.jpeg)

The preview shows correct operation. Unfortunately when running in a production environment the alerts are reported randomly and close a minute later. This happens for several vm’s at the same time. The time windows are set as shown in the screenshot:

 ![Obrazek PNG.jpeg](https://global.discourse-cdn.com/dynatrace/original/2X/8/859aa738b7fbaabeafd49ec722a819c0148cb35a.jpeg)

Radek

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [November 6, 2023, 6:16am UTC](https://community.dynatrace.com/t/problem-with-metric-event/42465/2 "2023-11-06T06:16:15Z")

</div>

Hi&nbsp;[@radek\_jasinski](https://community.dynatrace.com/user/16832),

Have you tried this metric for host restart?&nbsp;builtin:host.uptime

I hope it helps.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 6, 2023, 6:54am UTC](https://community.dynatrace.com/t/problem-with-metric-event/42465/3 "2023-11-06T06:54:58Z")

</div>

Hi [@Mizső](https://community.dynatrace.com/user/47783)

I haven’t tried it. I understand that this metric works for VM’s in Azure?

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 6, 2023, 7:37am UTC](https://community.dynatrace.com/t/problem-with-metric-event/42465/4 "2023-11-06T07:37:43Z")

</div>

Unfortunately, this metric is not available in my configuration. I don’t have OA installed on my hosts.

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [November 6, 2023, 7:53am UTC](https://community.dynatrace.com/t/problem-with-metric-event/42465/5 "2023-11-06T07:53:50Z")

</div>

Hi&nbsp;[@radek\_jasinski](https://community.dynatrace.com/user/16832),

Sorry I missed this information.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 6, 2023, 9:29am UTC](https://community.dynatrace.com/t/problem-with-metric-event/42465/6 "2023-11-06T09:29:40Z")

</div>

I’m reporting the problem to support - I’ll let you know if I find out anything.

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 7, 2023, 12:24pm UTC](https://community.dynatrace.com/t/problem-with-metric-event/42465/7 "2023-11-07T12:24:00Z")

</div>

On the recommendation of support we have increased the value for violating samples to 24 and for the moment this has helped:)
