metrics

package
v0.4.1-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

View Source
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 Duration

func Duration(start time.Time) time.Duration

Duration get the time since specified start

func DurationInMicroseconds

func DurationInMicroseconds(duration time.Duration) float64

DurationInMicroseconds gets the time in microseconds.

func DurationInMilliseconds

func DurationInMilliseconds(duration time.Duration) float64

DurationInMilliseconds gets the time in milliseconds.

func DurationInSeconds

func DurationInSeconds(duration time.Duration) float64

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

func UpdateActionDuration(actionName string, duration time.Duration)

UpdateActionDuration updates latency for every action

func UpdateE2eDuration

func UpdateE2eDuration(duration time.Duration)

UpdateE2eDuration updates entire end to end scheduling latency

func UpdatePluginDuration

func UpdatePluginDuration(pluginName, OnSessionStatus string, duration time.Duration)

UpdatePluginDuration updates latency for every plugin

func UpdatePodScheduleStatus

func UpdatePodScheduleStatus(label string, count int)

UpdatePodScheduleStatus update pod schedule decision, could be Success, Failure, Error

func UpdatePreemptionVictimsCount

func UpdatePreemptionVictimsCount(victimsCount int)

UpdatePreemptionVictimsCount updates count of preemption victims

func UpdateTaskScheduleDuration

func UpdateTaskScheduleDuration(duration time.Duration)

UpdateTaskScheduleDuration updates single task scheduling latency

func UpdateUnscheduleJobCount

func UpdateUnscheduleJobCount(jobCount int)

UpdateUnscheduleJobCount records total number of unscheduleable jobs

func UpdateUnscheduleTaskCount

func UpdateUnscheduleTaskCount(jobID string, taskCount int)

UpdateUnscheduleTaskCount records total number of unscheduleable tasks

Types

This section is empty.

Jump to

Keyboard shortcuts

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