kubelet

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeletPodLister

type KubeletPodLister struct{}

func (*KubeletPodLister) GetAvailableMetrics

func (k *KubeletPodLister) GetAvailableMetrics() []string

GetAvailableMetrics returns containerCPUUsageMetricName and containerMemUsageMetricName if kubelet is connected

func (*KubeletPodLister) ListMetrics

func (k *KubeletPodLister) ListMetrics() (containerCPU, containerMem map[string]float64, nodeCPU, nodeMem float64, retErr error)

ListMetrics accesses Kubelet's metrics and obtain pods and node metrics

func (*KubeletPodLister) ListPods

func (k *KubeletPodLister) ListPods() (*[]corev1.Pod, error)

ListPods accesses Kubelet's metrics and obtain PodList

Jump to

Keyboard shortcuts

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