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

Pods

Ccastrillon
Frequent Guest

good afternoon.

Can someone please help me. I need to create a dashboard with metrics of pods that restart quite a bit over a period of time.

Greetings,

3 REPLIES 3

Mizső
DynaMight Leader
DynaMight Leader

Hi @Ccastrillon,

In Managed:

builtin:kubernetes.container.restarts

:splitBy("dt.entity.cloud_application"):sum

:sort(value(avg,descending))

You can create it in data explorer an then pin it to a classic dashboard:

Mizs_0-1705956633998.png

eg. for oom kill I have created a monthly review with time fram selectros: -3M/M to -2M/M, -2M/M to -1M/M, -1M/M to now/M

Mizs_1-1705956834471.png

In Saas I do not know the exact data structure because I do not have to much experience with it but I hope it helps, some fields should be replaced to the proper value (eg. event.name and / or event.provider)

fetch events, scanLimitGBytes:-1, from: -30m
| filter event.provider == "KUBERNETES_EVENT"
| summarize count = count(),by:{event.name, dt.kubernetes.event.involved_object.name}
| filter event.name == "Job completed"

Mizs_2-1705957003172.png

Best regards,

Mizső

Certified Dynatrace Professional

@Mizső 

Good morning.
Thank you very much for your reply. I am very grateful to you for helping me.
Best regards,

Great 🙂

Have a nice day!

Featured Posts