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 ¶
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
Click to show internal directories.
Click to hide internal directories.