Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CadvisorCollector ¶
type CadvisorCollector struct {
// contains filtered or unexported fields
}
CadvisorCollector metric collector and converter
func NewCadvisorCollector ¶
func NewCadvisorCollector( infoProvider InfoProvider, sendDP func(*datapoint.Datapoint), hostname string, defaultDimensions map[string]string) *CadvisorCollector
NewCadvisorCollector creates new CadvisorCollector
func (*CadvisorCollector) Collect ¶
func (c *CadvisorCollector) Collect()
Collect fetches the stats from all containers and delivers them as Prometheus metrics. It implements prometheus.PrometheusCollector.
type InfoProvider ¶
type InfoProvider interface { // Get information about all subcontainers of the specified container (includes self). SubcontainersInfo(containerName string) ([]info.ContainerInfo, error) // Get information about the machine. GetMachineInfo() (*info.MachineInfo, error) }
InfoProvider provides a swappable interface to actually get the cAdvisor metrics
Click to show internal directories.
Click to hide internal directories.