metrics

package
v1.29.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TaskgroupResourcesCpuMetricsName TODO
	TaskgroupResourcesCpuMetricsName = "cpu"
	// TaskgroupResourcesMemoryMetricsName TODO
	TaskgroupResourcesMemoryMetricsName = "memory"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsController

type MetricsController interface {
	// StartScalerMetrics TODO
	// start to collect scaler metrics
	StartScalerMetrics(scaler *commtypes.BcsAutoscaler)

	// StopScalerMetrics TODO
	// stop to collect scaler metrics
	StopScalerMetrics(scaler *commtypes.BcsAutoscaler)

	// GetResourceMetric gets the given resource metric (and an associated oldest timestamp)
	// for all taskgroup matching the specified uuid
	GetResourceMetric(resourceName, uuid string) (TaskgroupMetricsInfo, error)
}

MetricsController collect external metrics or taskgroup resource metrics

type TaskgroupMetric

type TaskgroupMetric struct {
	Timestamp time.Time
	Window    int // seconds
	Value     float32
}

TaskgroupMetric contains pod metric value (the metric values are expected to be the metric as a milli-value)

type TaskgroupMetricsInfo

type TaskgroupMetricsInfo map[string]TaskgroupMetric

TaskgroupMetricsInfo contains taskgroup metrics as a map from pod names to TaskgroupMetricsInfo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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