Documentation ¶
Index ¶
- type Collector
- func (c *Collector) AggregateProcessEnergyUtilizationMetrics()
- func (c *Collector) AggregateProcessResourceUtilizationMetrics()
- func (c *Collector) Destroy()
- func (c *Collector) Initialize() error
- func (c *Collector) Update()
- func (c *Collector) UpdateEnergyUtilizationMetrics()
- func (c *Collector) UpdateNodeEnergyUtilizationMetrics()
- func (c *Collector) UpdateProcessEnergyUtilizationMetrics()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct { // NodeStats holds all node energy and resource usage metrics NodeStats stats.NodeStats // ProcessStats hold all process energy and resource usage metrics ProcessStats map[uint64]*stats.ProcessStats // ContainerStats holds the aggregated processes metrics for all containers ContainerStats map[string]*stats.ContainerStats // VMStats holds the aggregated processes metrics for all virtual machines VMStats map[string]*stats.VMStats }
func NewCollector ¶
func NewCollector() *Collector
func (*Collector) AggregateProcessEnergyUtilizationMetrics ¶ added in v0.7.3
func (c *Collector) AggregateProcessEnergyUtilizationMetrics()
AggregateProcessEnergyUtilizationMetrics aggregates processes' utilization metrics to containers and virtual machines
func (*Collector) AggregateProcessResourceUtilizationMetrics ¶ added in v0.7.3
func (c *Collector) AggregateProcessResourceUtilizationMetrics()
AggregateProcessResourceUtilizationMetrics aggregates processes' resource utilization metrics to containers, virtual machines and nodes
func (*Collector) Initialize ¶
func (*Collector) Update ¶
func (c *Collector) Update()
Update updates the node and container energy and resource usage metrics
func (*Collector) UpdateEnergyUtilizationMetrics ¶ added in v0.7.3
func (c *Collector) UpdateEnergyUtilizationMetrics()
func (*Collector) UpdateNodeEnergyUtilizationMetrics ¶ added in v0.7.3
func (c *Collector) UpdateNodeEnergyUtilizationMetrics()
UpdateEnergyUtilizationMetrics collects real-time node's resource power utilization if there is no real-time power meter, use the container's resource usage metrics to estimate the node's resource power
func (*Collector) UpdateProcessEnergyUtilizationMetrics ¶ added in v0.7.3
func (c *Collector) UpdateProcessEnergyUtilizationMetrics()
UpdateProcessEnergyUtilizationMetrics estimates the process energy consumption using its resource utilization and the node components energy consumption