kubelet

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIVersion = "v1"
)

Variables

This section is empty.

Functions

func GetNodeHostnameAndIP added in v1.5.0

func GetNodeHostnameAndIP(node *kube_api.Node) (string, net.IP, error)

func IsNotFoundError

func IsNotFoundError(err error) bool

func NewKubeletMetricsSource

func NewKubeletMetricsSource(host Host, client *KubeletClient, nodeName string, hostName string, hostId string, schedulable string) MetricsSource

func NewKubeletProvider

func NewKubeletProvider(uri *url.URL) (MetricsSourceProvider, error)

Types

type ErrNotFound

type ErrNotFound struct {
	// contains filtered or unexported fields
}

func (*ErrNotFound) Error

func (err *ErrNotFound) Error() string

type Host

type Host struct {
	IP       net.IP
	Port     int
	Resource string
}

func (Host) String added in v1.5.0

func (h Host) String() string

type KubeletClient

type KubeletClient struct {
	// contains filtered or unexported fields
}

func NewKubeletClient

func NewKubeletClient(kubeletConfig *kubelet_client.KubeletClientConfig) (*KubeletClient, error)

func (*KubeletClient) GetAllRawContainers

func (self *KubeletClient) GetAllRawContainers(host Host, start, end time.Time) ([]cadvisor.ContainerInfo, error)

Get stats for all non-Kubernetes containers.

func (*KubeletClient) GetPort

func (self *KubeletClient) GetPort() int

func (*KubeletClient) GetSummary

func (self *KubeletClient) GetSummary(host Host) (*stats.Summary, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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