metrics

package
v1.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// PodGCReasonTerminated is used when the pod is terminated.
	PodGCReasonTerminated = "terminated"
	// PodGCReasonCompleted is used when the pod is terminating and the corresponding node
	// is not ready and has `node.kubernetes.io/out-of-service` taint.
	PodGCReasonTerminatingOutOfService = "out-of-service"
	// PodGCReasonOrphaned is used when the pod is orphaned which means the corresponding node
	// has been deleted.
	PodGCReasonOrphaned = "orphaned"
	// PodGCReasonUnscheduled is used when the pod is terminating and unscheduled.
	PodGCReasonTerminatingUnscheduled = "unscheduled"
)

Variables

View Source
var (
	DeletingPodsTotal = metrics.NewCounterVec(
		&metrics.CounterOpts{
			Subsystem:      podGCController,
			Name:           "force_delete_pods_total",
			Help:           "Number of pods that are being forcefully deleted since the Pod GC Controller started.",
			StabilityLevel: metrics.ALPHA,
		},
		[]string{"namespace", "reason"},
	)
	DeletingPodsErrorTotal = metrics.NewCounterVec(
		&metrics.CounterOpts{
			Subsystem:      podGCController,
			Name:           "force_delete_pod_errors_total",
			Help:           "Number of errors encountered when forcefully deleting the pods since the Pod GC Controller started.",
			StabilityLevel: metrics.ALPHA,
		},
		[]string{"namespace", "reason"},
	)
)

Functions

func RegisterMetrics

func RegisterMetrics()

Register the metrics that are to be monitored.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL