cadvisor

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMetricsExtractors added in v0.29.0

func GetMetricsExtractors() []extractors.MetricExtractor

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

func (c *Cadvisor) GetMetrics() []pmetric.Metrics

GetMetrics generates metrics from cadvisor

func (*Cadvisor) Shutdown added in v0.83.0

func (c *Cadvisor) Shutdown() error

type Decorator added in v0.30.0

type Decorator interface {
	Decorate(*extractors.CAdvisorMetric) *extractors.CAdvisorMetric
	Shutdown() error
}

type EcsInfo added in v0.32.0

type EcsInfo interface {
	GetCPUReserved() int64
	GetMemReserved() int64
	GetRunningTaskCount() int64
	GetContainerInstanceID() string
	GetClusterName() string
}

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

func WithDecorator(d Decorator) Option

WithDecorator constructs an option for configuring the metric decorator

func WithECSInfoCreator added in v0.32.0

func WithECSInfoCreator(f EcsInfo) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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