}
// Start implements Volume.
-func (v *AzureBlobVolume) Start(opsCounters, errCounters, ioBytes *prometheus.CounterVec) error {
+func (v *AzureBlobVolume) Start(vm *volumeMetricsVecs) error {
if v.ContainerName == "" {
return errors.New("no container name given")
}
}
// Set up prometheus metrics
lbls := prometheus.Labels{"device_id": v.DeviceID()}
- v.container.stats.opsCounters = opsCounters.MustCurryWith(lbls)
- v.container.stats.errCounters = errCounters.MustCurryWith(lbls)
- v.container.stats.ioBytes = ioBytes.MustCurryWith(lbls)
+ v.container.stats.opsCounters, v.container.stats.errCounters, v.container.stats.ioBytes = vm.getCounterVecsFor(lbls)
return nil
}