helper

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContainerMetric

func GetContainerMetric(metricsFetcher metric.MetricsFetcher, emitter metrics.MetricEmitter, podUID, containerName, metricName string, numaID int) (float64, error)

func GetPodMetric

func GetPodMetric(metricsFetcher metric.MetricsFetcher, emitter metrics.MetricEmitter, pod *v1.Pod, metricName string, numaID int) (float64, bool)

GetPodMetric returns the value of a pod-level metric. And the value of a pod-level metric is calculated by summing the metric values for all containers in that pod.

func GetSystemKswapdStealMetrics

func GetSystemKswapdStealMetrics(metricsFetcher metric.MetricsFetcher, emitter metrics.MetricEmitter) (metricutil.MetricData, error)

func GetWatermarkMetrics

func GetWatermarkMetrics(metricsFetcher metric.MetricsFetcher, emitter metrics.MetricEmitter, numaID int) (free, total, scaleFactor float64, err error)

GetWatermarkMetrics returns system-water mark related metrics (config) if numa node is specified, return config in this numa; otherwise return system-level config

Types

This section is empty.

Jump to

Keyboard shortcuts

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