Documentation ¶
Index ¶
- Constants
- func GetKubeConfigs(uri *url.URL) (*kube_client.Config, *kubelet_client.KubeletClientConfig, error)
- func IsNotFoundError(err error) bool
- func NewKubeletMetricsSource(host Host, client *KubeletClient, nodeName string, hostName string, ...) MetricsSource
- func NewKubeletProvider(uri *url.URL) (MetricsSourceProvider, error)
- type ErrNotFound
- type Host
- type KubeletClient
Constants ¶
View Source
const (
APIVersion = "v1"
)
Variables ¶
This section is empty.
Functions ¶
func GetKubeConfigs ¶
func GetKubeConfigs(uri *url.URL) (*kube_client.Config, *kubelet_client.KubeletClientConfig, error)
func IsNotFoundError ¶
func NewKubeletMetricsSource ¶
func NewKubeletMetricsSource(host Host, client *KubeletClient, nodeName string, hostName string, hostId string) MetricsSource
func NewKubeletProvider ¶
Types ¶
type ErrNotFound ¶
type ErrNotFound struct {
// contains filtered or unexported fields
}
func (*ErrNotFound) Error ¶
func (err *ErrNotFound) Error() string
type KubeletClient ¶
type KubeletClient struct {
// contains filtered or unexported fields
}
func NewKubeletClient ¶
func NewKubeletClient(kubeletConfig *kube_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)
Click to show internal directories.
Click to hide internal directories.