package kubelet

import "k8s.io/heapster/metrics/sources/kubelet"

Index

Constants

const (
	APIVersion = "v1"
)

Functions

func GetKubeConfigs

func GetNodeHostnameAndIP

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

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)

Source Files

cadvisor_utils.go configs.go kubelet.go kubelet_client.go

Directories

PathSynopsis
metrics/sources/kubelet/util
Version
v1.5.4 (latest)
Published
Jul 26, 2018
Platform
linux/amd64
Imports
25 packages
Last checked
1 week ago

Tools for package owners.