package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev

# Packages

Package init installs GrabBeforeEach and GrabAfterEach as callbacks for gathering data before and after a test.

# Functions

APICallToPerfData transforms APIResponsiveness to PerfData.
GetDefaultKubeletLatencyMetrics calls GetKubeletLatencyMetrics with a set of default metricNames identifying common latency metrics.
GetKubeletLatencyMetrics filters ms to include only those contained in the metricNames set, then constructs a KubeletLatencyMetrics list based on the samples associated with those metrics.
GetKubeletMetrics gets all metrics in kubelet subsystem from specified node and trims the subsystem prefix.
GrabKubeletMetricsWithoutProxy retrieve metrics from the kubelet on the given node using a simple GET over http.
HighLatencyKubeletOperations logs and counts the high latency metrics exported by the kubelet server via /metrics.
NewKubeletMetrics returns new metrics which are initialized.
NewMetricsGrabber prepares for grabbing metrics data from several different components.
PrettyPrintJSON converts metrics to JSON format.

# Variables

MetricsGrabbingDisabledError is an error that is wrapped by the different MetricsGrabber.Wrap functions when metrics grabbing is not supported.

# Structs

APICall is a struct for managing API call.
APIResponsiveness is a struct for managing multiple API calls.
Collection is metrics collection of components.
Grabber provides functions which grab metrics from components.
KubeletLatencyMetric stores metrics scraped from the kubelet server's /metric endpoint.
LatencyMetric is a struct for dashboard metrics.
PodLatencyData encapsulates pod startup latency information.

# Type aliases

APIServerMetrics is metrics for API server.
ClusterAutoscalerMetrics is metrics for cluster autoscaler.
ComponentCollection is metrics collection of components.
ControllerManagerMetrics is metrics for controller manager.
KubeletLatencyMetrics implements sort.Interface for []KubeletMetric based on the latency field.
KubeletMetrics is metrics for kubelet.
KubeProxyMetrics is metrics for kube-proxy.
LatencySlice is an array of PodLatencyData which encapsulates pod startup latency information.
SchedulerMetrics is metrics for scheduler.
SnapshotControllerMetrics is metrics for controller manager.