Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckMetricNameExist ¶ added in v0.3.0
Types ¶
type CadvisorCollector ¶
type CadvisorCollector struct { Manager Manager // contains filtered or unexported fields }
CadvisorCollector is the collector to collect container state
func NewCadvisorCollector ¶ added in v0.4.0
func NewCadvisorCollector(podLister corelisters.PodLister, manager Manager) *CadvisorCollector
func (*CadvisorCollector) Collect ¶
func (c *CadvisorCollector) Collect() (map[string][]common.TimeSeries, error)
func (*CadvisorCollector) GetType ¶
func (c *CadvisorCollector) GetType() types.CollectType
func (*CadvisorCollector) Stop ¶
func (c *CadvisorCollector) Stop() error
Stop cadvisor and clear existing factory
type CadvisorManager ¶ added in v0.4.0
func (*CadvisorManager) GetCgroupDriver ¶ added in v0.5.0
func (m *CadvisorManager) GetCgroupDriver() string
type ContainerState ¶
type ContainerState struct {
// contains filtered or unexported fields
}
type Manager ¶ added in v0.4.0
type Manager interface { GetContainerInfoV2(containerName string, options cadvisorapiv2.RequestOptions) (map[string]cadvisorapiv2.ContainerInfo, error) GetContainerInfo(containerName string, query *info.ContainerInfoRequest) (*info.ContainerInfo, error) GetMachineInfo() (*info.MachineInfo, error) GetCgroupDriver() string }
func NewCadvisorManager ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.