Container terminated

We want the exact query for containers terminated that we have to plot it that exactly at what tie it got terminated.

any leads?..

are you using prometheus or mysql? You categorized this as the first and tagged it as the second. I’m not sure the community can troubleshoot this query without more details :+1:

I am using prometheus. Sorry for not giving the exact info.

@mattabrams

heyy would you please help me .

prometheus query:
increase(kube_pod_container_status_restarts_total{cluster="$cluster",namespace=~"^$namespace",pod=~"^$pod",container=~"$container"}[10m]) > 0

it is not giving correct answer for container restarts. could you please help me. Thanks in advance