diff --git a/src/dbnode/client/config.go b/src/dbnode/client/config.go index 8019b85978..896929f558 100644 --- a/src/dbnode/client/config.go +++ b/src/dbnode/client/config.go @@ -312,8 +312,10 @@ func (c Configuration) NewAdminClient( size = *c.AsyncWriteWorkerPoolSize } + workerPoolInstrumentOpts := iopts.SetMetricsScope(writeRequestScope) workerPoolOpts := xsync.NewPooledWorkerPoolOptions(). - SetGrowOnDemand(true) + SetGrowOnDemand(true). + SetInstrumentOptions(workerPoolInstrumentOpts) workerPool, err := xsync.NewPooledWorkerPool(size, workerPoolOpts) if err != nil { return nil, fmt.Errorf("unable to create async worker pool: %v", err)