metrics

package
v0.0.0-...-ac39e06 Latest Latest
Warning

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

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

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 UpdateJobShare

func UpdateJobShare(jobNs, jobId string, share float64)

UpdateJobShare records share for one job

func UpdateNamespaceShare

func UpdateNamespaceShare(nsName string, share float64)

UpdateNamespaceShare records share for one namespace

func UpdateNamespaceWeight

func UpdateNamespaceWeight(nsName string, weight int64)

UpdateNamespaceWeight records weight for one namespace

func UpdateNamespaceWeightedShare

func UpdateNamespaceWeightedShare(nsName 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

func UpdateQueueAllocated(queueName string, milliCPU, memory float64)

UpdateQueueAllocated records allocated resources for one queue

func UpdateQueueDeserved

func UpdateQueueDeserved(queueName string, milliCPU, memory float64)

UpdateQueueDeserved records deserved resources for one queue

func UpdateQueueOverused

func UpdateQueueOverused(queueName string, overused bool)

UpdateQueueOverused records if one queue is overused

func UpdateQueuePodGroupInqueueCount

func UpdateQueuePodGroupInqueueCount(queueName string, count int32)

UpdateQueuePodGroupInqueueCount records the number of Inqueue PodGroup in this queue

func UpdateQueuePodGroupPendingCount

func UpdateQueuePodGroupPendingCount(queueName string, count int32)

UpdateQueuePodGroupPendingCount records the number of Pending PodGroup in this queue

func UpdateQueuePodGroupRunningCount

func UpdateQueuePodGroupRunningCount(queueName string, count int32)

UpdateQueuePodGroupRunningCount records the number of Running PodGroup in this queue

func UpdateQueuePodGroupUnknownCount

func UpdateQueuePodGroupUnknownCount(queueName string, count int32)

UpdateQueuePodGroupUnknownCount records the number of Unknown PodGroup in this queue

func UpdateQueueRequest

func UpdateQueueRequest(queueName string, milliCPU, memory float64)

UpdateQueueRequest records request resources for one queue

func UpdateQueueShare

func UpdateQueueShare(queueName string, share float64)

UpdateQueueShare records share for one queue

func UpdateQueueWeight

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