Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNodeGPUMetrics ¶
func GetNodeGPUMetrics(client *kubernetes.Clientset, nodeNames []string) (map[string]types.NodeGpuMetric, error)
func GetPrometheusClient ¶
func QueryPrometheusMetrics ¶
func QueryPrometheusMetrics(client *kubernetes.Clientset, query string) ([]types.GpuMetricInfo, error)
Types ¶
type JobGpuMetric ¶
type JobGpuMetric map[string]types.PodGpuMetric
func GetPodsGpuInfo ¶
func GetPodsGpuInfo(client *kubernetes.Clientset, podNames []string) (JobGpuMetric, error)
func (JobGpuMetric) GetPodMetrics ¶
func (m JobGpuMetric) GetPodMetrics(podName string) types.PodGpuMetric
func (*JobGpuMetric) SetPodMetric ¶
func (m *JobGpuMetric) SetPodMetric(metric types.GpuMetricInfo)
Click to show internal directories.
Click to hide internal directories.