# Question regarding a Metric Event

**URL:** <https://community.dynatrace.com/t/question-regarding-a-metric-event/38681>\
**Category:** Container platforms\
**Tags:** dynatrace-managed, kubernetes\
**Created:** [March 3, 2023, 9:46am UTC](https://community.dynatrace.com/t/question-regarding-a-metric-event/38681 "2023-03-03T09:46:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![YuvalKonstanti](https://avatars.discourse-cdn.com/v4/letter/y/5f9b8f/32.png) [@YuvalKonstanti](https://community.dynatrace.com/u/YuvalKonstanti)\
**Post date:** [March 3, 2023, 9:46am UTC](https://community.dynatrace.com/t/question-regarding-a-metric-event/38681/1 "2023-03-03T09:46:29Z")

</div>

Hey Dynatrace Community!

I want to consult with you, regarding a “Metric event” I created.

The purpose: to create an alert, that will be triggered when in our Kubernetes cluster, there are Pods in status pending.

The logic is below:

 ![YuvalKonstanti_0-1677835478923.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/b/4b056a0a6aebd30f6ca2a751a3622f57e01d05e4.png)

 ![YuvalKonstanti_1-1677835549042.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/db72941fe21347864b50cd5db988593359728de6.png)

If you take a look on the image you will see that it seems that the conditions were true for a few occasions, and still no alert was created.

Could you please assist me in understanding if I missed something here?  
Thank you!

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [March 3, 2023, 1:34pm UTC](https://community.dynatrace.com/t/question-regarding-a-metric-event/38681/2 "2023-03-03T13:34:24Z")

</div>

Hi [@YuvalKonstanti](https://community.dynatrace.com/user/41788) you can also setup [event filters](https://www.dynatrace.com/support/help/shortlink/monitor-events-kubernetes#set-up-event-field-selectors) for your pods events.

ie:

 ![DanielS_0-1677850341225.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/b5c79161b4ef8b0012af9164f4ccd6d92daf327d.png)

---

<div class="post-metadata">

**Author:** ![florian\_g](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/florian_g/32/12081_2.png) [@florian\_g](https://community.dynatrace.com/u/florian_g)\
**Post date:** [March 7, 2023, 2:00pm UTC](https://community.dynatrace.com/t/question-regarding-a-metric-event/38681/3 "2023-03-07T14:00:49Z")

</div>

Hi&nbsp;[@YuvalKonstanti](https://community.dynatrace.com/user/41788)&nbsp;are you aware of the K8s alerts already included in Dynatrace? Please read more here:&nbsp;[https://community.dynatrace.com/t5/Feedback-channel/Introducing-easy-alerting-on-common-Kubernetes-platform-issues/td-p/197824](https://community.dynatrace.com/topic/197824)  
Starting with version 1.254, there’s also an alert for pending pods.

---

<div class="post-metadata">

**Author:** ![YuvalKonstanti](https://avatars.discourse-cdn.com/v4/letter/y/5f9b8f/32.png) [@YuvalKonstanti](https://community.dynatrace.com/u/YuvalKonstanti)\
**Post date:** [March 7, 2023, 11:22pm UTC](https://community.dynatrace.com/t/question-regarding-a-metric-event/38681/4 "2023-03-07T23:22:21Z")

</div>

Hey,

I believe that you are correct! I do see Dynatrace default problems on this exact issue.

It is still unknown to me, why my custom alert didn’t triggered a problem (even though it detect an issue). But for this purpose, I believe Dynatrace does it by default.

Thank you!

---

<div class="post-metadata">

**Author:** ![florian\_g](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/florian_g/32/12081_2.png) [@florian\_g](https://community.dynatrace.com/u/florian_g)\
**Post date:** [March 9, 2023, 4:51pm UTC](https://community.dynatrace.com/t/question-regarding-a-metric-event/38681/5 "2023-03-09T16:51:28Z")

</div>

Regarding your original question - skimming over your screenshots I have some ideas:

1. did you try to use 0 as threshold? it says “above”, so I would assume it’s a \> and not a \>=. Meaning a threshold of 1, would only trigger if you count more than 1.
2. Which metric event type did you use? I think not all of them create a problem - some only create an event.
3. Did you allow merging? If yes, maybe your problem got merged with the default problem that Dynatrace created (pending pod alert) and did not create a separate problem? You should see this in the problem card.

---

<div class="post-metadata">

**Author:** ![YuvalKonstanti](https://avatars.discourse-cdn.com/v4/letter/y/5f9b8f/32.png) [@YuvalKonstanti](https://community.dynatrace.com/u/YuvalKonstanti)\
**Post date:** [March 28, 2023, 9:24am UTC](https://community.dynatrace.com/t/question-regarding-a-metric-event/38681/6 "2023-03-28T09:24:42Z")

</div>

Hey,

1. So firstly,&nbsp;threshold was 5 and I assumed&nbsp;that it is related. I’m guessing that you proposal is correct.

2. That’s really interesting! I used “builtin:cloud.kubernetes.workload.pods”. How can I know which one is creating an alert and which one isn’t?

3. Merging is the option that allow Dynatrace to create “Multiple service problems”, isn’t it?

Thank you for the answer!
