# Problem card for stopping container Kubernetes events

**URL:** <https://community.dynatrace.com/t/problem-card-for-stopping-container-kubernetes-events/47377>\
**Category:** Alerting\
**Tags:** problem-notification, davis, anomaly-detection, kubernetes, problems-classic\
**Created:** [August 29, 2024, 10:00am UTC](https://community.dynatrace.com/t/problem-card-for-stopping-container-kubernetes-events/47377 "2024-08-29T10:00:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gurugogi](https://avatars.discourse-cdn.com/v4/letter/g/87869e/32.png) [@gurugogi](https://community.dynatrace.com/u/gurugogi)\
**Post date:** [August 29, 2024, 10:00am UTC](https://community.dynatrace.com/t/problem-card-for-stopping-container-kubernetes-events/47377/1 "2024-08-29T10:00:26Z")

</div>

Hi Team,

please let me know whether DT by default creates problem card for events of type “Stopping container”.

dt.event.title&nbsp;Stopping container \<container-name\>

dt.kubernetes.event.message​&nbsp;Stopping container \<container-name\>

I changed thresholds to 1 in 1min “Detect workloads without ready pods” and “Detect workloads with non-ready pods” but still no problem card got created when deployment was deleted manually and we got “dt.event.title&nbsp;Stopping container \<container-name\>” events.

Regards,  
Guru Gogi

---

<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:** [August 29, 2024, 11:03am UTC](https://community.dynatrace.com/t/problem-card-for-stopping-container-kubernetes-events/47377/2 "2024-08-29T11:03:32Z")

</div>

Hi&nbsp;[@gurugogi](https://community.dynatrace.com/user/61893)&nbsp;,

Maybe this solution also could help. Prerequisite Kubernetes API integration.

Check your settings, which event types are collected:

 ![Mizs_0-1724928941413.png](https://global.discourse-cdn.com/dynatrace/original/1X/0cb35200c18c1445b3ed3c5d488954e09774a259.png)

Create a metric expression for your specific Kubenetes event, this example use the Killing event:

 ![Mizs_1-1724929053255.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/de784353b45170eea79a446b295e7d2fd4bf50a1.png)

 ![Mizs_2-1724929148401.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/e/2ea1e0643c8644e6d95a24b21d5335e0cebdd091.png)

Create a metric event with the metric expession:

builtin:kubernetes.events:filter(and(or(eq(“k8s.event.reason”,Killing)))):splitBy(“dt.entity.cloud\_application\_namespace”,“dt.entity.cloud\_application”,“k8s.event.reason”,“k8s.pod.name”):sort(value(auto,descending))

 ![Mizs_3-1724929261986.png](https://global.discourse-cdn.com/dynatrace/original/2X/c/c5006a98159ab26478e1e3d30c4d548df31fdaa1.png)

You can enrich the description:

 ![Mizs_4-1724929364168.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/7/0722d7569a160291c558e50973f3d663c9ed74e4.png)

I hope it helps.

Best regards,

Mizső
