Check manual page of kube_pod_resources

Kubernetes: Pod Resources
Distribution official part of Check_MK
License GPL
Supported Agents Kubernetes
This check monitors the pods respective to the Kubernetes Deployment. Specifically, it monitors the number of pods which are in the phases

- running

- pending

- failed

- succeeded

- unknown

Upper levels for WARN/CRIT can be defined for the time a pod is pending. The duration a pod is pending is calculated based on the time checkmk has seen the pod, not on data provided by the Kubernetes API. This means the pending phase duration is zero when the monitoring first begins, even if there are pods, which have been pending for much longer. By default, any time a pod spends pending is tolerated and the service remains OK.

If a pod exceeds the tolerating time period, the pod name will be displayed next to the number of pods. If there are more than three pods exceeding the time limit, only the those three pods, which have been in the pending phase the longest will be shown.

For pods in the phase unknown, the state of the check result is configurable. By default the service goes UNKNOWN, if there are unknown pods. The pod names are displayed in similar fashion as for the pending pods. However, pod names are not displayed based on how long they have been unknown.

The check requires that the special agent kube is configured.