Problem card for stopping container Kubernetes events

Hi Team,

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

dt.event.title Stopping container <container-name>

dt.kubernetes.event.message​ 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 Stopping container <container-name>” events.

Regards,
Guru Gogi

Hi @gurugogi ,

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

Check your settings, which event types are collected:

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

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))

You can enrich the description:

I hope it helps.

Best regards,

Mizső