collector

package
v0.7.9 Latest Latest
Warning

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

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

Documentation

Index

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) Destroy

func (c *Collector) Destroy()

func (*Collector) Initialize

func (c *Collector) Initialize() error

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

Directories

Path Synopsis
resourceutilization
bpf

Jump to

Keyboard shortcuts

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