metrics

package
v1.27.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsController

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

	//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