Documentation ¶
Index ¶
- Constants
- func Duration(start time.Time) time.Duration
- func DurationInMicroseconds(duration time.Duration) float64
- func DurationInMilliseconds(duration time.Duration) float64
- func DurationInSeconds(duration time.Duration) float64
- func RegisterJobRetries(jobID string)
- func RegisterPreemptionAttempts()
- func UpdateActionDuration(actionName string, duration time.Duration)
- func UpdateE2eDuration(duration time.Duration)
- func UpdateJobShare(jobNs, jobId string, share float64)
- func UpdateNamespaceShare(nsName string, share float64)
- func UpdateNamespaceWeight(nsName string, weight int64)
- func UpdateNamespaceWeightedShare(nsName string, weightedShare float64)
- func UpdatePluginDuration(pluginName, OnSessionStatus string, duration time.Duration)
- func UpdatePodScheduleStatus(label string, count int)
- func UpdatePreemptionVictimsCount(victimsCount int)
- func UpdateQueueAllocated(queueName string, milliCPU, memory float64)
- func UpdateQueueDeserved(queueName string, milliCPU, memory float64)
- func UpdateQueueOverused(queueName string, overused bool)
- func UpdateQueuePodGroupInqueueCount(queueName string, count int32)
- func UpdateQueuePodGroupPendingCount(queueName string, count int32)
- func UpdateQueuePodGroupRunningCount(queueName string, count int32)
- func UpdateQueuePodGroupUnknownCount(queueName string, count int32)
- func UpdateQueueRequest(queueName string, milliCPU, memory float64)
- func UpdateQueueShare(queueName string, share float64)
- func UpdateQueueWeight(queueName string, weight int32)
- func UpdateTaskScheduleDuration(duration time.Duration)
- func UpdateUnscheduleJobCount(jobCount int)
- func UpdateUnscheduleTaskCount(jobID string, taskCount int)
Constants ¶
const ( // VolcanoNamespace - namespace in prometheus used by volcano VolcanoNamespace = "volcano" // OnSessionOpen label OnSessionOpen = "OnSessionOpen" // OnSessionClose label OnSessionClose = "OnSessionClose" )
Variables ¶
This section is empty.
Functions ¶
func DurationInMicroseconds ¶
DurationInMicroseconds gets the time in microseconds.
func DurationInMilliseconds ¶
DurationInMilliseconds gets the time in milliseconds.
func DurationInSeconds ¶
DurationInSeconds gets the time in seconds.
func RegisterJobRetries ¶
func RegisterJobRetries(jobID string)
RegisterJobRetries total number of job retries.
func RegisterPreemptionAttempts ¶
func RegisterPreemptionAttempts()
RegisterPreemptionAttempts records number of attempts for preemtion
func UpdateActionDuration ¶
UpdateActionDuration updates latency for every action
func UpdateE2eDuration ¶
UpdateE2eDuration updates entire end to end scheduling latency
func UpdateJobShare ¶
UpdateJobShare records share for one job
func UpdateNamespaceShare ¶
UpdateNamespaceShare records share for one namespace
func UpdateNamespaceWeight ¶
UpdateNamespaceWeight records weight for one namespace
func UpdateNamespaceWeightedShare ¶
UpdateNamespaceWeightedShare records weighted share for one namespace
func UpdatePluginDuration ¶
UpdatePluginDuration updates latency for every plugin
func UpdatePodScheduleStatus ¶
UpdatePodScheduleStatus update pod schedule decision, could be Success, Failure, Error
func UpdatePreemptionVictimsCount ¶
func UpdatePreemptionVictimsCount(victimsCount int)
UpdatePreemptionVictimsCount updates count of preemption victims
func UpdateQueueAllocated ¶
UpdateQueueAllocated records allocated resources for one queue
func UpdateQueueDeserved ¶
UpdateQueueDeserved records deserved resources for one queue
func UpdateQueueOverused ¶
UpdateQueueOverused records if one queue is overused
func UpdateQueuePodGroupInqueueCount ¶
UpdateQueuePodGroupInqueueCount records the number of Inqueue PodGroup in this queue
func UpdateQueuePodGroupPendingCount ¶
UpdateQueuePodGroupPendingCount records the number of Pending PodGroup in this queue
func UpdateQueuePodGroupRunningCount ¶
UpdateQueuePodGroupRunningCount records the number of Running PodGroup in this queue
func UpdateQueuePodGroupUnknownCount ¶
UpdateQueuePodGroupUnknownCount records the number of Unknown PodGroup in this queue
func UpdateQueueRequest ¶
UpdateQueueRequest records request resources for one queue
func UpdateQueueShare ¶
UpdateQueueShare records share for one queue
func UpdateQueueWeight ¶
UpdateQueueWeight records weight for one queue
func UpdateTaskScheduleDuration ¶
UpdateTaskScheduleDuration updates single task scheduling latency
func UpdateUnscheduleJobCount ¶
func UpdateUnscheduleJobCount(jobCount int)
UpdateUnscheduleJobCount records total number of unscheduleable jobs
func UpdateUnscheduleTaskCount ¶
UpdateUnscheduleTaskCount records total number of unscheduleable tasks
Types ¶
This section is empty.