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 UpdatePluginDuration(pluginName, OnSessionStatus string, duration time.Duration)
- func UpdatePodScheduleStatus(label string, count int)
- func UpdatePreemptionVictimsCount(victimsCount int)
- 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 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 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.