prometheus

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0, Apache-2.0 Imports: 21 Imported by: 2

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 GetPrometheusClient() promv1.API

func GetPrometheusServer

func GetPrometheusServer(client *kubernetes.Clientset) *types.PrometheusServer

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)

Jump to

Keyboard shortcuts

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