mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 11:38:15 +00:00
Remove old metric scheduler_goroutines
Signed-off-by: kerthcet <kerthcet@gmail.com>
This commit is contained in:
parent
42799903af
commit
7be3f8e43f
@ -106,16 +106,6 @@ var (
|
|||||||
Help: "Number of pending pods, by the queue type. 'active' means number of pods in activeQ; 'backoff' means number of pods in backoffQ; 'unschedulable' means number of pods in unschedulablePods that the scheduler attempted to schedule and failed; 'gated' is the number of unschedulable pods that the scheduler never attempted to schedule because they are gated.",
|
Help: "Number of pending pods, by the queue type. 'active' means number of pods in activeQ; 'backoff' means number of pods in backoffQ; 'unschedulable' means number of pods in unschedulablePods that the scheduler attempted to schedule and failed; 'gated' is the number of unschedulable pods that the scheduler never attempted to schedule because they are gated.",
|
||||||
StabilityLevel: metrics.STABLE,
|
StabilityLevel: metrics.STABLE,
|
||||||
}, []string{"queue"})
|
}, []string{"queue"})
|
||||||
// SchedulerGoroutines isn't called in some parts where goroutines start.
|
|
||||||
// Goroutines metric replaces SchedulerGoroutines metric. Goroutine metric tracks all goroutines.
|
|
||||||
SchedulerGoroutines = metrics.NewGaugeVec(
|
|
||||||
&metrics.GaugeOpts{
|
|
||||||
Subsystem: SchedulerSubsystem,
|
|
||||||
DeprecatedVersion: "1.26.0",
|
|
||||||
Name: "scheduler_goroutines",
|
|
||||||
Help: "Number of running goroutines split by the work they do such as binding. This metric is replaced by the \"goroutines\" metric.",
|
|
||||||
StabilityLevel: metrics.ALPHA,
|
|
||||||
}, []string{"work"})
|
|
||||||
Goroutines = metrics.NewGaugeVec(
|
Goroutines = metrics.NewGaugeVec(
|
||||||
&metrics.GaugeOpts{
|
&metrics.GaugeOpts{
|
||||||
Subsystem: SchedulerSubsystem,
|
Subsystem: SchedulerSubsystem,
|
||||||
@ -220,7 +210,6 @@ var (
|
|||||||
FrameworkExtensionPointDuration,
|
FrameworkExtensionPointDuration,
|
||||||
PluginExecutionDuration,
|
PluginExecutionDuration,
|
||||||
SchedulerQueueIncomingPods,
|
SchedulerQueueIncomingPods,
|
||||||
SchedulerGoroutines,
|
|
||||||
Goroutines,
|
Goroutines,
|
||||||
PermitWaitDuration,
|
PermitWaitDuration,
|
||||||
CacheSize,
|
CacheSize,
|
||||||
|
@ -102,8 +102,6 @@ func (sched *Scheduler) scheduleOne(ctx context.Context) {
|
|||||||
bindingCycleCtx, cancel := context.WithCancel(ctx)
|
bindingCycleCtx, cancel := context.WithCancel(ctx)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
metrics.SchedulerGoroutines.WithLabelValues(metrics.Binding).Inc()
|
|
||||||
defer metrics.SchedulerGoroutines.WithLabelValues(metrics.Binding).Dec()
|
|
||||||
metrics.Goroutines.WithLabelValues(metrics.Binding).Inc()
|
metrics.Goroutines.WithLabelValues(metrics.Binding).Inc()
|
||||||
defer metrics.Goroutines.WithLabelValues(metrics.Binding).Dec()
|
defer metrics.Goroutines.WithLabelValues(metrics.Binding).Dec()
|
||||||
|
|
||||||
@ -686,10 +684,8 @@ func prioritizeNodes(
|
|||||||
}
|
}
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func(extIndex int) {
|
go func(extIndex int) {
|
||||||
metrics.SchedulerGoroutines.WithLabelValues(metrics.PrioritizingExtender).Inc()
|
|
||||||
metrics.Goroutines.WithLabelValues(metrics.PrioritizingExtender).Inc()
|
metrics.Goroutines.WithLabelValues(metrics.PrioritizingExtender).Inc()
|
||||||
defer func() {
|
defer func() {
|
||||||
metrics.SchedulerGoroutines.WithLabelValues(metrics.PrioritizingExtender).Dec()
|
|
||||||
metrics.Goroutines.WithLabelValues(metrics.PrioritizingExtender).Dec()
|
metrics.Goroutines.WithLabelValues(metrics.PrioritizingExtender).Dec()
|
||||||
wg.Done()
|
wg.Done()
|
||||||
}()
|
}()
|
||||||
|
Loading…
Reference in New Issue
Block a user