X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/92d1b6e05e042a0781070e7287b1ceb3e094e852..2887fa9c26cfd4ae6379e2cf4e6c5d50aaa0dd11:/services/keepstore/unix_volume.go diff --git a/services/keepstore/unix_volume.go b/services/keepstore/unix_volume.go index 8bdbf93629..96f458720d 100644 --- a/services/keepstore/unix_volume.go +++ b/services/keepstore/unix_volume.go @@ -220,7 +220,7 @@ func (v *UnixVolume) Type() string { } // Start implements Volume -func (v *UnixVolume) Start(opsCounters, errCounters, ioBytes *prometheus.CounterVec) error { +func (v *UnixVolume) Start(vm *volumeMetricsVecs) error { if v.Serialize { v.locker = &sync.Mutex{} } @@ -232,9 +232,7 @@ func (v *UnixVolume) Start(opsCounters, errCounters, ioBytes *prometheus.Counter } // Set up prometheus metrics lbls := prometheus.Labels{"device_id": v.DeviceID()} - v.os.stats.opsCounters = opsCounters.MustCurryWith(lbls) - v.os.stats.errCounters = errCounters.MustCurryWith(lbls) - v.os.stats.ioBytes = ioBytes.MustCurryWith(lbls) + v.os.stats.opsCounters, v.os.stats.errCounters, v.os.stats.ioBytes = vm.getCounterVecsFor(lbls) _, err := v.os.Stat(v.Root)