Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cmd/scheduler/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ func Run(opt *options.ServerOption) error {
panic(err)
}

// InitKubeSchedulerRelatedMetrics must always be called to initialize
// k8smetrics.Goroutines which is used by Kubernetes scheduler framework plugins
metrics.InitKubeSchedulerRelatedMetrics()

if opt.EnableMetrics || opt.EnablePprof {
metrics.InitKubeSchedulerRelatedMetrics()
go startMetricsServer(opt)
}

Expand Down
Loading