package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev
# Packages
Package resources provides a metrics collector that reports the resource consumption (requests and limits) of the pods in the cluster as the scheduler and kubelet would interpret it.
# Functions
ActivePods returns the pending pods metrics with the label active.
BackoffPods returns the pending pods metrics with the label backoff.
GatedPods returns the pending pods metrics with the label gated.
GetGather returns the gatherer.
NewActivePodsRecorder returns ActivePods in a Prometheus metric fashion.
NewBackoffPodsRecorder returns BackoffPods in a Prometheus metric fashion.
NewGatedPodsRecorder returns GatedPods in a Prometheus metric fashion.
NewUnschedulablePodsRecorder returns UnschedulablePods in a Prometheus metric fashion.
PodScheduled can records a successful scheduling attempt and the duration since `start`.
PodScheduleError can records a scheduling attempt that had an error and the duration since `start`.
PodUnschedulable can records a scheduling attempt for an unschedulable pod and the duration since `start`.
Register all metrics.
RegisterMetrics registers a list of metrics.
SinceInSeconds gets the time since the specified start in seconds.
UnschedulablePods returns the pending pods metrics with the label unschedulable.
# Constants
Binding - binding work/operation label value.
PrioritizingExtender - prioritizing extender work/operation label value.
SchedulerSubsystem - subsystem name used by scheduler.
# Variables
All the histogram based metrics have 1ms as size for the smallest bucket.
All the histogram based metrics have 1ms as size for the smallest bucket.
ExtentionPoints is a list of possible values for the extension_point label.
All the histogram based metrics have 1ms as size for the smallest bucket.
All the histogram based metrics have 1ms as size for the smallest bucket.
All the histogram based metrics have 1ms as size for the smallest bucket.
All the histogram based metrics have 1ms as size for the smallest bucket.
All the histogram based metrics have 1ms as size for the smallest bucket.
All the histogram based metrics have 1ms as size for the smallest bucket.
All the histogram based metrics have 1ms as size for the smallest bucket.
All the histogram based metrics have 1ms as size for the smallest bucket.
All the histogram based metrics have 1ms as size for the smallest bucket.
The below two are only available when the async-preemption feature gate is enabled.
All the histogram based metrics have 1ms as size for the smallest bucket.
All the histogram based metrics have 1ms as size for the smallest bucket.
Deprecated: SchedulerCacheSize is deprecated, and will be removed at v1.34.
All the histogram based metrics have 1ms as size for the smallest bucket.
All the histogram based metrics have 1ms as size for the smallest bucket.
# Structs
MetricAsyncRecorder records metric in a separate goroutine to avoid overhead in the critical path.
PendingPodsRecorder is an implementation of MetricRecorder.
# Interfaces
MetricRecorder represents a metric recorder which takes action when the metric Inc(), Dec() and Clear().