Documentation ¶
Index ¶
- func GetContainerMetric(metricsFetcher metric.MetricsFetcher, emitter metrics.MetricEmitter, ...) (float64, error)
- func GetPodMetric(metricsFetcher metric.MetricsFetcher, emitter metrics.MetricEmitter, ...) (float64, bool)
- func GetSystemKswapdStealMetrics(metricsFetcher metric.MetricsFetcher, emitter metrics.MetricEmitter) (metricutil.MetricData, error)
- func GetWatermarkMetrics(metricsFetcher metric.MetricsFetcher, emitter metrics.MetricEmitter, ...) (free, total, scaleFactor float64, err error)
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.
Click to show internal directories.
Click to hide internal directories.