cadvisor

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Kubelet interactions with cAdvisor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CapacityFromMachineInfo added in v1.2.0

func CapacityFromMachineInfo(info *cadvisorapi.MachineInfo) v1.ResourceList

func StorageOverlayCapacityFromFsInfo added in v1.7.0

func StorageOverlayCapacityFromFsInfo(info cadvisorapi2.FsInfo) v1.ResourceList

func StorageScratchCapacityFromFsInfo added in v1.7.0

func StorageScratchCapacityFromFsInfo(info cadvisorapi2.FsInfo) v1.ResourceList

Types

type Interface

type Interface interface {
	Start() error
	DockerContainer(name string, req *cadvisorapi.ContainerInfoRequest) (cadvisorapi.ContainerInfo, error)
	ContainerInfo(name string, req *cadvisorapi.ContainerInfoRequest) (*cadvisorapi.ContainerInfo, error)
	ContainerInfoV2(name string, options cadvisorapiv2.RequestOptions) (map[string]cadvisorapiv2.ContainerInfo, error)
	SubcontainerInfo(name string, req *cadvisorapi.ContainerInfoRequest) (map[string]*cadvisorapi.ContainerInfo, error)
	MachineInfo() (*cadvisorapi.MachineInfo, error)

	VersionInfo() (*cadvisorapi.VersionInfo, error)

	// Returns usage information about the filesystem holding Docker images.
	ImagesFsInfo() (cadvisorapiv2.FsInfo, error)

	// Returns usage information about the root filesystem.
	RootFsInfo() (cadvisorapiv2.FsInfo, error)

	// Get events streamed through passedChannel that fit the request.
	WatchEvents(request *events.Request) (*events.EventChannel, error)

	// HasDedicatedImageFs returns true iff a dedicated image filesystem exists for storing images.
	HasDedicatedImageFs() (bool, error)
}

Interface is an abstract interface for testability. It abstracts the interface to cAdvisor.

func New

func New(port uint, runtime string, rootPath string) (Interface, error)

New creates a cAdvisor and exports its API on the specified port if port > 0.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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