cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem card for stopping container Kubernetes events

gurugogi
Guide

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

1 REPLY 1

Mizső
DynaMight Guru
DynaMight Guru

Hi @gurugogi ,

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

Check your settings, which event types are collected: 

Mizs_0-1724928941413.png

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

Mizs_1-1724929053255.png

Mizs_2-1724929148401.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

You can enrich the description:

Mizs_4-1724929364168.png

I hope it helps.

Best regards,

Mizső

Dynatrace Community RockStar 2024, Certified Dynatrace Professional

Featured Posts