Merge branch '15209-python-arv-deps-pinned'
[arvados.git] / services / keepstore / s3_volume.go
index 33279e5ef84ece7dfdf4037e9d183bd04e63fbcb..4c39dcd5c4f12fc9a8b8ad36d165545af952fb7a 100644 (file)
@@ -251,9 +251,7 @@ func (v *S3Volume) Start(vm *volumeMetricsVecs) error {
        }
        // Set up prometheus metrics
        lbls := prometheus.Labels{"device_id": v.DeviceID()}
-       v.bucket.stats.opsCounters = vm.opsCounters.MustCurryWith(lbls)
-       v.bucket.stats.errCounters = vm.errCounters.MustCurryWith(lbls)
-       v.bucket.stats.ioBytes = vm.ioBytes.MustCurryWith(lbls)
+       v.bucket.stats.opsCounters, v.bucket.stats.errCounters, v.bucket.stats.ioBytes = vm.getCounterVecsFor(lbls)
 
        return nil
 }