Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cadvisor ¶
type Cadvisor struct {
// contains filtered or unexported fields
}
func New ¶
func New(containerOrchestrator string, hostInfo hostInfo, logger *zap.Logger, options ...Option) (*Cadvisor, error)
New creates a Cadvisor struct which can generate metrics from embedded cadvisor lib
func (*Cadvisor) GetMetrics ¶
GetMetrics generates metrics from cadvisor
func (*Cadvisor) GetMetricsExtractors ¶ added in v0.112.0
func (c *Cadvisor) GetMetricsExtractors() []extractors.MetricExtractor
type Decorator ¶ added in v0.30.0
type Decorator interface { Decorate(*extractors.CAdvisorMetric) *extractors.CAdvisorMetric Shutdown() error }
type Option ¶ added in v0.30.0
type Option func(*Cadvisor)
Option is a function that can be used to configure Cadvisor struct
func WithDecorator ¶ added in v0.30.0
WithDecorator constructs an option for configuring the metric decorator
func WithECSInfoCreator ¶ added in v0.32.0
Click to show internal directories.
Click to hide internal directories.