Documentation ¶
Index ¶
Constants ¶
View Source
const (
// SamplePeriodSec is the time in seconds that the reader will wait before reading the metrics again
SamplePeriodSec = 3
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectorManager ¶
type CollectorManager struct { // MetricCollector is resposible to collect resource and energy consumption metrics and calculate them when needed MetricCollector *collector.Collector // PrometheusCollector implements the external Collector interface provided by the Prometheus client PrometheusCollector *collector.PrometheusCollector }
func New ¶
func New() *CollectorManager
func (*CollectorManager) Start ¶
func (m *CollectorManager) Start() error
Click to show internal directories.
Click to hide internal directories.