Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cadvisor ¶
type Cadvisor interface { Start() error Stop() error MachineInfo() (*cadvisorapi.MachineInfo, error) ContainerInfoV2(name string, options cadvisorapiv2.RequestOptions) (map[string]cadvisorapiv2.ContainerInfo, error) ContainerSpec(containerName string, options cadvisorapiv2.RequestOptions) ( map[string]cadvisorapiv2.ContainerSpec, error) }
Cadvisor interface
func NewCadvisorManager ¶
func NewCadvisorManager(cadPram CadvisorParameter, cgroupPrefixs []string) Cadvisor
NewCadvisorManager creates a new cadvisor manager instance
type CadvisorParameter ¶
type CadvisorParameter struct { MemCache *memory.InMemoryCache SysFs sysfs.SysFs IncludeMetrics cadvisormetrics.MetricSet MaxHousekeepingInterval time.Duration }
CadvisorParameter describe options for cadvisor
Click to show internal directories.
Click to hide internal directories.