mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-09-30 03:51:43 +02:00
Disable Prometheus metrics by default (#331)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user