metrics

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 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 ConvertToUnix added in v1.7.0

func ConvertToUnix(t time.Time) float64

ConvertToUnix convert the time to Unix time

func DeleteJobMetrics added in v1.6.0

func DeleteJobMetrics(jobName, queue, namespace string)

DeleteJobMetrics delete all metrics related to the job

func DeleteQueueMetrics added in v1.6.0

func DeleteQueueMetrics(queueName string)

DeleteQueueMetrics delete all metrics related to the queue

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 UpdateE2eSchedulingDurationByJob added in v1.1.0

func UpdateE2eSchedulingDurationByJob(jobName string, queue string, namespace string, duration time.Duration)

UpdateE2eSchedulingDurationByJob updates entire end to end scheduling duration

func UpdateE2eSchedulingLastTimeByJob added in v1.7.0

func UpdateE2eSchedulingLastTimeByJob(jobName string, queue string, namespace string, t time.Time)

UpdateE2eSchedulingLastTimeByJob updates the last time of scheduling

func UpdateE2eSchedulingStartTimeByJob added in v1.7.0

func UpdateE2eSchedulingStartTimeByJob(jobName string, queue string, namespace string, t time.Time)

UpdateE2eSchedulingStartTimeByJob updates the start time of scheduling

func UpdateJobShare added in v1.0.0

func UpdateJobShare(jobNs, jobID string, share float64)

UpdateJobShare records share for one job

func UpdateNamespaceShare added in v1.0.0

func UpdateNamespaceShare(namespaceName string, share float64)

UpdateNamespaceShare records share for one namespace

func UpdateNamespaceWeight added in v1.0.0

func UpdateNamespaceWeight(namespaceName string, weight int64)

UpdateNamespaceWeight records weight for one namespace

func UpdateNamespaceWeightedShare added in v1.0.0

func UpdateNamespaceWeightedShare(namespaceName string, weightedShare float64)

UpdateNamespaceWeightedShare records weighted share for one namespace

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 UpdateQueueAllocated added in v1.0.0

func UpdateQueueAllocated(queueName string, milliCPU, memory float64)

UpdateQueueAllocated records allocated resources for one queue

func UpdateQueueDeserved added in v1.0.0

func UpdateQueueDeserved(queueName string, milliCPU, memory float64)

UpdateQueueDeserved records deserved resources for one queue

func UpdateQueueOverused added in v1.0.0

func UpdateQueueOverused(queueName string, overused bool)

UpdateQueueOverused records if one queue is overused

func UpdateQueuePodGroupInqueueCount added in v1.0.0

func UpdateQueuePodGroupInqueueCount(queueName string, count int32)

UpdateQueuePodGroupInqueueCount records the number of Inqueue PodGroup in this queue

func UpdateQueuePodGroupPendingCount added in v1.0.0

func UpdateQueuePodGroupPendingCount(queueName string, count int32)

UpdateQueuePodGroupPendingCount records the number of Pending PodGroup in this queue

func UpdateQueuePodGroupRunningCount added in v1.0.0

func UpdateQueuePodGroupRunningCount(queueName string, count int32)

UpdateQueuePodGroupRunningCount records the number of Running PodGroup in this queue

func UpdateQueuePodGroupUnknownCount added in v1.0.0

func UpdateQueuePodGroupUnknownCount(queueName string, count int32)

UpdateQueuePodGroupUnknownCount records the number of Unknown PodGroup in this queue

func UpdateQueueRequest added in v1.0.0

func UpdateQueueRequest(queueName string, milliCPU, memory float64)

UpdateQueueRequest records request resources for one queue

func UpdateQueueShare added in v1.0.0

func UpdateQueueShare(queueName string, share float64)

UpdateQueueShare records share for one queue

func UpdateQueueWeight added in v1.0.0

func UpdateQueueWeight(queueName string, weight int32)

UpdateQueueWeight records weight for one queue

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