cloud-ark / kubeplus

Kubernetes Operator for multi-instance multi-tenancy
https://cloudark.io/
Apache License 2.0
662 stars 82 forks source link

Ignore 'Succeeded' pods when calculating not running Pods in metrics plugin #1329

Closed devdattakulkarni closed 3 months ago

devdattakulkarni commented 4 months ago

In kubectl metrics plugin, we calculate the number of 'not running' pods. We should ignore the pods that are 'Succeeded'.

https://github.com/cloud-ark/kubeplus/blob/master/plugins/crmetrics.py#L236