Disable Prometheus metrics by default (#331)

This commit is contained in:
Nikolay Edigaryev
2025-07-17 00:58:13 +04:00
committed by GitHub
parent fe85ae1661
commit 39fbbbc2a6
4 changed files with 29 additions and 8 deletions
+2 -1
View File
@@ -61,6 +61,7 @@ type Controller struct {
maxWorkersPerLicense uint
experimentalRPCV2 bool
pingInterval time.Duration
prometheusMetrics bool
sshListenAddr string
sshSigner ssh.Signer
@@ -122,7 +123,7 @@ func New(opts ...Option) (*Controller, error) {
// Instantiate the scheduler
controller.scheduler, err = scheduler.NewScheduler(store, controller.workerNotifier,
controller.workerOfflineTimeout, controller.logger)
controller.workerOfflineTimeout, controller.prometheusMetrics, controller.logger)
if err != nil {
return nil, err
}