Documentation ¶
Index ¶
- func GetContainerMetric(metricsFetcher types.MetricsFetcher, emitter metrics.MetricEmitter, ...) (float64, error)
- func GetDeviceMetric(metricsFetcher types.MetricsFetcher, emitter metrics.MetricEmitter, ...) (float64, error)
- func GetDeviceMetricWithTime(metricsFetcher types.MetricsFetcher, emitter metrics.MetricEmitter, ...) (metricutil.MetricData, error)
- func GetNodeMetric(metricsFetcher types.MetricsFetcher, emitter metrics.MetricEmitter, ...) (float64, error)
- func GetNodeMetricWithTime(metricsFetcher types.MetricsFetcher, emitter metrics.MetricEmitter, ...) (metricutil.MetricData, error)
- func GetNumaMetric(metricsFetcher types.MetricsFetcher, emitter metrics.MetricEmitter, ...) (float64, error)
- func GetNumaMetricWithTime(metricsFetcher types.MetricsFetcher, emitter metrics.MetricEmitter, ...) (metricutil.MetricData, error)
- func GetPodMetric(metricsFetcher types.MetricsFetcher, emitter metrics.MetricEmitter, ...) (float64, error)
- func GetVolumeMetric(metricsFetcher types.MetricsFetcher, emitter metrics.MetricEmitter, ...) (float64, error)
- func GetWatermarkMetrics(metricsFetcher types.MetricsFetcher, emitter metrics.MetricEmitter, numaID int) (free, total, scaleFactor float64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContainerMetric ¶
func GetContainerMetric(metricsFetcher types.MetricsFetcher, emitter metrics.MetricEmitter, podUID, containerName, metricName string, numaID int) (float64, error)
func GetDeviceMetric ¶ added in v0.4.1
func GetDeviceMetric(metricsFetcher types.MetricsFetcher, emitter metrics.MetricEmitter, metricName string, devName string) (float64, error)
func GetDeviceMetricWithTime ¶ added in v0.4.1
func GetDeviceMetricWithTime(metricsFetcher types.MetricsFetcher, emitter metrics.MetricEmitter, metricName string, devName string) (metricutil.MetricData, error)
func GetNodeMetric ¶ added in v0.4.0
func GetNodeMetric(metricsFetcher types.MetricsFetcher, emitter metrics.MetricEmitter, metricName string) (float64, error)
func GetNodeMetricWithTime ¶ added in v0.4.0
func GetNodeMetricWithTime(metricsFetcher types.MetricsFetcher, emitter metrics.MetricEmitter, metricName string) (metricutil.MetricData, error)
func GetNumaMetric ¶ added in v0.4.0
func GetNumaMetric(metricsFetcher types.MetricsFetcher, emitter metrics.MetricEmitter, metricName string, numaID int) (float64, error)
func GetNumaMetricWithTime ¶ added in v0.4.0
func GetNumaMetricWithTime(metricsFetcher types.MetricsFetcher, emitter metrics.MetricEmitter, metricName string, numaID int) (metricutil.MetricData, error)
func GetPodMetric ¶
func GetPodMetric(metricsFetcher types.MetricsFetcher, emitter metrics.MetricEmitter, pod *v1.Pod, metricName string, numaID int) (float64, error)
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 GetVolumeMetric ¶ added in v0.4.0
func GetVolumeMetric(metricsFetcher types.MetricsFetcher, emitter metrics.MetricEmitter, podUID, volumeName, metricName string) (float64, error)
func GetWatermarkMetrics ¶
func GetWatermarkMetrics(metricsFetcher types.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.