Documentation ¶
Index ¶
- Constants
- func NewInternalMetricsCollector(hcInfo *history.InternalMetricsHistory) *internalMetricsCollector
- func Reset()
- func SinceInSeconds(start time.Time) float64
- type EventMetrics
- func (em *EventMetrics) AddEventsCollected(collectedEvents int)
- func (em *EventMetrics) IncEventsChanneled()
- func (em *EventMetrics) IncEventsCreated()
- func (em *EventMetrics) IncEventsNotChanneled()
- func (em *EventMetrics) IncEventsNotStored()
- func (em *EventMetrics) IncEventsProcessed()
- func (em *EventMetrics) IncEventsStored()
- func (em *EventMetrics) Reset()
- type GenericMetrics
- type InternalMetricsCollector
- type MStatsMetrics
- type Metrics
- type QueueMetrics
- func (m *QueueMetrics) AddReleasedContainers(value int)
- func (m *QueueMetrics) DecQueueApplicationsAccepted()
- func (m *QueueMetrics) DecQueueApplicationsCompleting()
- func (m *QueueMetrics) DecQueueApplicationsFailing()
- func (m *QueueMetrics) DecQueueApplicationsNew()
- func (m *QueueMetrics) DecQueueApplicationsResuming()
- func (m *QueueMetrics) DecQueueApplicationsRunning()
- func (m *QueueMetrics) GetQueueApplicationsAccepted() (int, error)
- func (m *QueueMetrics) GetQueueApplicationsCompleted() (int, error)
- func (m *QueueMetrics) GetQueueApplicationsCompleting() (int, error)
- func (m *QueueMetrics) GetQueueApplicationsFailed() (int, error)
- func (m *QueueMetrics) GetQueueApplicationsFailing() (int, error)
- func (m *QueueMetrics) GetQueueApplicationsNew() (int, error)
- func (m *QueueMetrics) GetQueueApplicationsRejected() (int, error)
- func (m *QueueMetrics) GetQueueApplicationsResuming() (int, error)
- func (m *QueueMetrics) GetQueueApplicationsRunning() (int, error)
- func (m *QueueMetrics) IncAllocatedContainer()
- func (m *QueueMetrics) IncQueueApplicationsAccepted()
- func (m *QueueMetrics) IncQueueApplicationsCompleted()
- func (m *QueueMetrics) IncQueueApplicationsCompleting()
- func (m *QueueMetrics) IncQueueApplicationsFailed()
- func (m *QueueMetrics) IncQueueApplicationsFailing()
- func (m *QueueMetrics) IncQueueApplicationsNew()
- func (m *QueueMetrics) IncQueueApplicationsRejected()
- func (m *QueueMetrics) IncQueueApplicationsResuming()
- func (m *QueueMetrics) IncQueueApplicationsRunning()
- func (m *QueueMetrics) IncReleasedContainer()
- func (m *QueueMetrics) Reset()
- func (m *QueueMetrics) SetQueueAllocatedResourceMetrics(resourceName string, value float64)
- func (m *QueueMetrics) SetQueueGuaranteedResourceMetrics(resourceName string, value float64)
- func (m *QueueMetrics) SetQueueMaxResourceMetrics(resourceName string, value float64)
- func (m *QueueMetrics) SetQueuePendingResourceMetrics(resourceName string, value float64)
- func (m *QueueMetrics) SetQueuePreemptingResourceMetrics(resourceName string, value float64)
- type RuntimeMetrics
- type SchedulerMetrics
- func (m *SchedulerMetrics) AddAllocatedContainers(value int)
- func (m *SchedulerMetrics) AddRejectedContainers(value int)
- func (m *SchedulerMetrics) AddReleasedContainers(value int)
- func (m *SchedulerMetrics) DecActiveNodes()
- func (m *SchedulerMetrics) DecDrainingNodes()
- func (m *SchedulerMetrics) DecFailedNodes()
- func (m *SchedulerMetrics) DecTotalApplicationsCompleting()
- func (m *SchedulerMetrics) DecTotalApplicationsFailing()
- func (m *SchedulerMetrics) DecTotalApplicationsResuming()
- func (m *SchedulerMetrics) DecTotalApplicationsRunning()
- func (m *SchedulerMetrics) GetDrainingNodes() (int, error)
- func (m *SchedulerMetrics) GetFailedNodes() (int, error)
- func (m *SchedulerMetrics) GetSchedulingErrors() (int, error)
- func (m *SchedulerMetrics) GetTotalApplicationsAccepted() (int, error)
- func (m *SchedulerMetrics) GetTotalApplicationsCompleted() (int, error)
- func (m *SchedulerMetrics) GetTotalApplicationsNew() (int, error)
- func (m *SchedulerMetrics) GetTotalApplicationsRejected() (int, error)
- func (m *SchedulerMetrics) GetTotalApplicationsResuming() (int, error)
- func (m *SchedulerMetrics) GetTotalApplicationsRunning() (int, error)
- func (m *SchedulerMetrics) IncActiveNodes()
- func (m *SchedulerMetrics) IncDrainingNodes()
- func (m *SchedulerMetrics) IncFailedNodes()
- func (m *SchedulerMetrics) IncSchedulingError()
- func (m *SchedulerMetrics) IncTotalApplicationsAccepted()
- func (m *SchedulerMetrics) IncTotalApplicationsCompleted()
- func (m *SchedulerMetrics) IncTotalApplicationsCompleting()
- func (m *SchedulerMetrics) IncTotalApplicationsFailed()
- func (m *SchedulerMetrics) IncTotalApplicationsFailing()
- func (m *SchedulerMetrics) IncTotalApplicationsNew()
- func (m *SchedulerMetrics) IncTotalApplicationsRejected()
- func (m *SchedulerMetrics) IncTotalApplicationsResuming()
- func (m *SchedulerMetrics) IncTotalApplicationsRunning()
- func (m *SchedulerMetrics) IncTotalDecommissionedNodes()
- func (m *SchedulerMetrics) ObserveAppSortingLatency(start time.Time)
- func (m *SchedulerMetrics) ObserveQueueSortingLatency(start time.Time)
- func (m *SchedulerMetrics) ObserveSchedulingLatency(start time.Time)
- func (m *SchedulerMetrics) ObserveTryNodeLatency(start time.Time)
- func (m *SchedulerMetrics) ObserveTryPreemptionLatency(start time.Time)
- func (m *SchedulerMetrics) Reset()
- func (m *SchedulerMetrics) SetNodeResourceUsage(resourceName string, rangeIdx int, value float64)
Constants ¶
View Source
const ( // Namespace for all metrics inside the scheduler Namespace = "yunikorn" // SchedulerSubsystem - subsystem name used by scheduler SchedulerSubsystem = "scheduler" // EventSubsystem - subsystem name used by event cache EventSubsystem = "event" // MetricNameInvalidByteReplacement byte used to replace invalid bytes in prometheus metric names MetricNameInvalidByteReplacement = '_' )
View Source
const ( AppNew = "new" AppAccepted = "accepted" AppRunning = "running" AppFailing = "failing" AppFailed = "failed" AppRejected = "rejected" AppResuming = "resuming" AppCompleting = "completing" AppCompleted = "completed" AppExpired = "expired" ContainerReleased = "released" ContainerAllocated = "allocated" ContainerRejected = "rejected" QueueGuaranteed = "guaranteed" QueueMax = "max" QueuePending = "pending" QueuePreempting = "preempting" )
View Source
const ( MemStatsLabel = "MemStats" PauseNsLabel = "PauseNs" PauseEndLabel = "PauseEnd" GenericLabel = "Generic" Runtime = "runtime" )
View Source
const ( SchedulingError = "error" SortingApp = "app" SortingQueue = "queue" NodeActive = "active" NodeDraining = "draining" NodeDecommissioned = "decommissioned" )
Variables ¶
This section is empty.
Functions ¶
func NewInternalMetricsCollector ¶
func NewInternalMetricsCollector(hcInfo *history.InternalMetricsHistory) *internalMetricsCollector
func SinceInSeconds ¶
Types ¶
type EventMetrics ¶ added in v1.5.0
type EventMetrics struct {
// contains filtered or unexported fields
}
func GetEventMetrics ¶
func GetEventMetrics() *EventMetrics
func (*EventMetrics) AddEventsCollected ¶ added in v1.5.0
func (em *EventMetrics) AddEventsCollected(collectedEvents int)
func (*EventMetrics) IncEventsChanneled ¶ added in v1.5.0
func (em *EventMetrics) IncEventsChanneled()
func (*EventMetrics) IncEventsCreated ¶ added in v1.5.0
func (em *EventMetrics) IncEventsCreated()
func (*EventMetrics) IncEventsNotChanneled ¶ added in v1.5.0
func (em *EventMetrics) IncEventsNotChanneled()
func (*EventMetrics) IncEventsNotStored ¶ added in v1.5.0
func (em *EventMetrics) IncEventsNotStored()
func (*EventMetrics) IncEventsProcessed ¶ added in v1.5.0
func (em *EventMetrics) IncEventsProcessed()
func (*EventMetrics) IncEventsStored ¶ added in v1.5.0
func (em *EventMetrics) IncEventsStored()
func (*EventMetrics) Reset ¶ added in v1.5.0
func (em *EventMetrics) Reset()
Reset all metrics that implement the Set functionality. Should only be used in tests
type GenericMetrics ¶
type GenericMetrics struct {
// contains filtered or unexported fields
}
func (*GenericMetrics) Collect ¶
func (gm *GenericMetrics) Collect()
func (*GenericMetrics) Reset ¶
func (gm *GenericMetrics) Reset()
type InternalMetricsCollector ¶ added in v1.5.0
type InternalMetricsCollector interface {
Stop()
}
type MStatsMetrics ¶
type MStatsMetrics struct {
// contains filtered or unexported fields
}
func (*MStatsMetrics) Collect ¶
func (ms *MStatsMetrics) Collect()
func (*MStatsMetrics) Reset ¶
func (ms *MStatsMetrics) Reset()
type QueueMetrics ¶
type QueueMetrics struct {
// contains filtered or unexported fields
}
QueueMetrics to declare queue metrics
func GetQueueMetrics ¶
func GetQueueMetrics(name string) *QueueMetrics
func InitQueueMetrics ¶
func InitQueueMetrics(name string) *QueueMetrics
InitQueueMetrics to initialize queue metrics
func (*QueueMetrics) AddReleasedContainers ¶ added in v1.4.0
func (m *QueueMetrics) AddReleasedContainers(value int)
func (*QueueMetrics) DecQueueApplicationsAccepted ¶ added in v1.6.0
func (m *QueueMetrics) DecQueueApplicationsAccepted()
func (*QueueMetrics) DecQueueApplicationsCompleting ¶ added in v1.6.0
func (m *QueueMetrics) DecQueueApplicationsCompleting()
func (*QueueMetrics) DecQueueApplicationsFailing ¶ added in v1.6.0
func (m *QueueMetrics) DecQueueApplicationsFailing()
func (*QueueMetrics) DecQueueApplicationsNew ¶ added in v1.6.0
func (m *QueueMetrics) DecQueueApplicationsNew()
func (*QueueMetrics) DecQueueApplicationsResuming ¶ added in v1.6.0
func (m *QueueMetrics) DecQueueApplicationsResuming()
func (*QueueMetrics) DecQueueApplicationsRunning ¶
func (m *QueueMetrics) DecQueueApplicationsRunning()
func (*QueueMetrics) GetQueueApplicationsAccepted ¶ added in v1.4.0
func (m *QueueMetrics) GetQueueApplicationsAccepted() (int, error)
func (*QueueMetrics) GetQueueApplicationsCompleted ¶ added in v1.4.0
func (m *QueueMetrics) GetQueueApplicationsCompleted() (int, error)
func (*QueueMetrics) GetQueueApplicationsCompleting ¶ added in v1.6.0
func (m *QueueMetrics) GetQueueApplicationsCompleting() (int, error)
func (*QueueMetrics) GetQueueApplicationsFailed ¶ added in v1.4.0
func (m *QueueMetrics) GetQueueApplicationsFailed() (int, error)
func (*QueueMetrics) GetQueueApplicationsFailing ¶ added in v1.6.0
func (m *QueueMetrics) GetQueueApplicationsFailing() (int, error)
func (*QueueMetrics) GetQueueApplicationsNew ¶ added in v1.6.0
func (m *QueueMetrics) GetQueueApplicationsNew() (int, error)
func (*QueueMetrics) GetQueueApplicationsRejected ¶ added in v1.4.0
func (m *QueueMetrics) GetQueueApplicationsRejected() (int, error)
func (*QueueMetrics) GetQueueApplicationsResuming ¶ added in v1.6.0
func (m *QueueMetrics) GetQueueApplicationsResuming() (int, error)
func (*QueueMetrics) GetQueueApplicationsRunning ¶ added in v1.4.0
func (m *QueueMetrics) GetQueueApplicationsRunning() (int, error)
func (*QueueMetrics) IncAllocatedContainer ¶
func (m *QueueMetrics) IncAllocatedContainer()
func (*QueueMetrics) IncQueueApplicationsAccepted ¶
func (m *QueueMetrics) IncQueueApplicationsAccepted()
func (*QueueMetrics) IncQueueApplicationsCompleted ¶
func (m *QueueMetrics) IncQueueApplicationsCompleted()
func (*QueueMetrics) IncQueueApplicationsCompleting ¶ added in v1.6.0
func (m *QueueMetrics) IncQueueApplicationsCompleting()
func (*QueueMetrics) IncQueueApplicationsFailed ¶
func (m *QueueMetrics) IncQueueApplicationsFailed()
func (*QueueMetrics) IncQueueApplicationsFailing ¶ added in v1.6.0
func (m *QueueMetrics) IncQueueApplicationsFailing()
func (*QueueMetrics) IncQueueApplicationsNew ¶ added in v1.6.0
func (m *QueueMetrics) IncQueueApplicationsNew()
func (*QueueMetrics) IncQueueApplicationsRejected ¶
func (m *QueueMetrics) IncQueueApplicationsRejected()
func (*QueueMetrics) IncQueueApplicationsResuming ¶ added in v1.6.0
func (m *QueueMetrics) IncQueueApplicationsResuming()
func (*QueueMetrics) IncQueueApplicationsRunning ¶
func (m *QueueMetrics) IncQueueApplicationsRunning()
func (*QueueMetrics) IncReleasedContainer ¶
func (m *QueueMetrics) IncReleasedContainer()
func (*QueueMetrics) Reset ¶
func (m *QueueMetrics) Reset()
func (*QueueMetrics) SetQueueAllocatedResourceMetrics ¶
func (m *QueueMetrics) SetQueueAllocatedResourceMetrics(resourceName string, value float64)
func (*QueueMetrics) SetQueueGuaranteedResourceMetrics ¶
func (m *QueueMetrics) SetQueueGuaranteedResourceMetrics(resourceName string, value float64)
func (*QueueMetrics) SetQueueMaxResourceMetrics ¶
func (m *QueueMetrics) SetQueueMaxResourceMetrics(resourceName string, value float64)
func (*QueueMetrics) SetQueuePendingResourceMetrics ¶
func (m *QueueMetrics) SetQueuePendingResourceMetrics(resourceName string, value float64)
func (*QueueMetrics) SetQueuePreemptingResourceMetrics ¶ added in v1.3.0
func (m *QueueMetrics) SetQueuePreemptingResourceMetrics(resourceName string, value float64)
type RuntimeMetrics ¶
type RuntimeMetrics struct { *MStatsMetrics *GenericMetrics }
func GetRuntimeMetrics ¶
func GetRuntimeMetrics() *RuntimeMetrics
func (*RuntimeMetrics) Collect ¶
func (a *RuntimeMetrics) Collect()
func (*RuntimeMetrics) Reset ¶
func (a *RuntimeMetrics) Reset()
Reset all metrics that implement the Reset functionality. should only be used in tests
type SchedulerMetrics ¶
type SchedulerMetrics struct {
// contains filtered or unexported fields
}
SchedulerMetrics to declare scheduler metrics
func GetSchedulerMetrics ¶
func GetSchedulerMetrics() *SchedulerMetrics
func InitSchedulerMetrics ¶
func InitSchedulerMetrics() *SchedulerMetrics
InitSchedulerMetrics to initialize scheduler metrics
func (*SchedulerMetrics) AddAllocatedContainers ¶
func (m *SchedulerMetrics) AddAllocatedContainers(value int)
func (*SchedulerMetrics) AddRejectedContainers ¶
func (m *SchedulerMetrics) AddRejectedContainers(value int)
func (*SchedulerMetrics) AddReleasedContainers ¶
func (m *SchedulerMetrics) AddReleasedContainers(value int)
func (*SchedulerMetrics) DecActiveNodes ¶
func (m *SchedulerMetrics) DecActiveNodes()
func (*SchedulerMetrics) DecDrainingNodes ¶
func (m *SchedulerMetrics) DecDrainingNodes()
func (*SchedulerMetrics) DecFailedNodes ¶
func (m *SchedulerMetrics) DecFailedNodes()
func (*SchedulerMetrics) DecTotalApplicationsCompleting ¶ added in v1.6.0
func (m *SchedulerMetrics) DecTotalApplicationsCompleting()
func (*SchedulerMetrics) DecTotalApplicationsFailing ¶ added in v1.6.0
func (m *SchedulerMetrics) DecTotalApplicationsFailing()
func (*SchedulerMetrics) DecTotalApplicationsResuming ¶ added in v1.6.0
func (m *SchedulerMetrics) DecTotalApplicationsResuming()
func (*SchedulerMetrics) DecTotalApplicationsRunning ¶
func (m *SchedulerMetrics) DecTotalApplicationsRunning()
func (*SchedulerMetrics) GetDrainingNodes ¶ added in v1.4.0
func (m *SchedulerMetrics) GetDrainingNodes() (int, error)
func (*SchedulerMetrics) GetFailedNodes ¶
func (m *SchedulerMetrics) GetFailedNodes() (int, error)
func (*SchedulerMetrics) GetSchedulingErrors ¶
func (m *SchedulerMetrics) GetSchedulingErrors() (int, error)
func (*SchedulerMetrics) GetTotalApplicationsAccepted ¶ added in v1.6.0
func (m *SchedulerMetrics) GetTotalApplicationsAccepted() (int, error)
func (*SchedulerMetrics) GetTotalApplicationsCompleted ¶ added in v1.4.0
func (m *SchedulerMetrics) GetTotalApplicationsCompleted() (int, error)
func (*SchedulerMetrics) GetTotalApplicationsNew ¶ added in v1.6.0
func (m *SchedulerMetrics) GetTotalApplicationsNew() (int, error)
func (*SchedulerMetrics) GetTotalApplicationsRejected ¶ added in v1.4.0
func (m *SchedulerMetrics) GetTotalApplicationsRejected() (int, error)
func (*SchedulerMetrics) GetTotalApplicationsResuming ¶ added in v1.6.0
func (m *SchedulerMetrics) GetTotalApplicationsResuming() (int, error)
func (*SchedulerMetrics) GetTotalApplicationsRunning ¶ added in v1.4.0
func (m *SchedulerMetrics) GetTotalApplicationsRunning() (int, error)
func (*SchedulerMetrics) IncActiveNodes ¶
func (m *SchedulerMetrics) IncActiveNodes()
func (*SchedulerMetrics) IncDrainingNodes ¶
func (m *SchedulerMetrics) IncDrainingNodes()
func (*SchedulerMetrics) IncFailedNodes ¶
func (m *SchedulerMetrics) IncFailedNodes()
func (*SchedulerMetrics) IncSchedulingError ¶
func (m *SchedulerMetrics) IncSchedulingError()
func (*SchedulerMetrics) IncTotalApplicationsAccepted ¶
func (m *SchedulerMetrics) IncTotalApplicationsAccepted()
func (*SchedulerMetrics) IncTotalApplicationsCompleted ¶
func (m *SchedulerMetrics) IncTotalApplicationsCompleted()
func (*SchedulerMetrics) IncTotalApplicationsCompleting ¶ added in v1.6.0
func (m *SchedulerMetrics) IncTotalApplicationsCompleting()
func (*SchedulerMetrics) IncTotalApplicationsFailed ¶
func (m *SchedulerMetrics) IncTotalApplicationsFailed()
func (*SchedulerMetrics) IncTotalApplicationsFailing ¶ added in v1.6.0
func (m *SchedulerMetrics) IncTotalApplicationsFailing()
func (*SchedulerMetrics) IncTotalApplicationsNew ¶ added in v1.6.0
func (m *SchedulerMetrics) IncTotalApplicationsNew()
func (*SchedulerMetrics) IncTotalApplicationsRejected ¶
func (m *SchedulerMetrics) IncTotalApplicationsRejected()
func (*SchedulerMetrics) IncTotalApplicationsResuming ¶ added in v1.6.0
func (m *SchedulerMetrics) IncTotalApplicationsResuming()
func (*SchedulerMetrics) IncTotalApplicationsRunning ¶
func (m *SchedulerMetrics) IncTotalApplicationsRunning()
func (*SchedulerMetrics) IncTotalDecommissionedNodes ¶
func (m *SchedulerMetrics) IncTotalDecommissionedNodes()
func (*SchedulerMetrics) ObserveAppSortingLatency ¶
func (m *SchedulerMetrics) ObserveAppSortingLatency(start time.Time)
func (*SchedulerMetrics) ObserveQueueSortingLatency ¶
func (m *SchedulerMetrics) ObserveQueueSortingLatency(start time.Time)
func (*SchedulerMetrics) ObserveSchedulingLatency ¶
func (m *SchedulerMetrics) ObserveSchedulingLatency(start time.Time)
func (*SchedulerMetrics) ObserveTryNodeLatency ¶
func (m *SchedulerMetrics) ObserveTryNodeLatency(start time.Time)
func (*SchedulerMetrics) ObserveTryPreemptionLatency ¶ added in v1.3.0
func (m *SchedulerMetrics) ObserveTryPreemptionLatency(start time.Time)
func (*SchedulerMetrics) Reset ¶
func (m *SchedulerMetrics) Reset()
Reset all metrics that implement the Reset functionality. should only be used in tests
func (*SchedulerMetrics) SetNodeResourceUsage ¶
func (m *SchedulerMetrics) SetNodeResourceUsage(resourceName string, rangeIdx int, value float64)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.