You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did add pod name and UID to the metric. This could in theory add quite some churn. But there's probably very few pods force drained, and it allows us to see if pods get stuck and non-deletable or if they are recreated.
Help: "Counts the number of deletion attempts for pods on nodes that are being force drained. A pod can be deleted multiple times if it is stuck and can't get deleted on the first attempt.",
Help: "Counts the number of termination attempts for pods on nodes that are being force drained. This metric counts pods with long grace periods. The controller deletes them with a grace period of 1. A pod can be terminated multiple times if it is stuck and can't get terminated on the first attempt.",
@@ -308,6 +329,7 @@ func (r *NodeForceDrainReconciler) forceDeletePodsOnNode(ctx context.Context, no
308
329
309
330
l.Info("Forcing pod termination")
310
331
r.Recorder.Eventf(&node, corev1.EventTypeWarning, "NodeDrainForcingPodTermination", "Forcing pod termination: Deleting pod %q in namespace %q with grace period of 1.", pod.Name, pod.Namespace)
# HELP openshift_upgrade_controller_node_force_drain_pod_deletions_total Counts the number of deletion attempts for pods on nodes that are being force drained. A pod can be deleted multiple times if it is stuck and can't get deleted on the first attempt.
242
+
# TYPE openshift_upgrade_controller_node_force_drain_pod_deletions_total counter
# HELP openshift_upgrade_controller_node_force_drain_pod_terminations_total Counts the number of termination attempts for pods on nodes that are being force drained. This metric counts pods with long grace periods. The controller deletes them with a grace period of 1. A pod can be terminated multiple times if it is stuck and can't get terminated on the first attempt.
246
+
# TYPE openshift_upgrade_controller_node_force_drain_pod_terminations_total counter
0 commit comments