19 Jul 2023 01:59 PM
Hello Folks,
How do we get pending pods by pod name.
I'm trying to configure the metric events. Goal is to get pod who's status is in pending state and filter by namespaces.
Below is the query I'm using however, I don't get any result,
builtin:kubernetes.pods:filter(and(or(in("dt.entity.cloud_application_namespace",entitySelector("type(cloud_application_namespace),entityName.equals(~"namespace~")"))),or(eq(pod_phase,Pending)))):splitBy("k8.pod.name"):sort(value(auto,descending))
Metric used is Kubernetes: Pod count (by workload)
Regards,
AK
Solved! Go to Solution.
20 Jul 2023 01:12 PM
Hi Team,
Is it possible? Can someone help.
Regards,
AK
20 Jul 2023 03:22 PM
Something like this?
Here is code:
builtin:kubernetes.pods:filter(and(or(eq(pod_status,Pending)))):splitBy("k8s.pod.name"):sort(value(auto,descending)):limit(20)