Merge branch '13593-async-perm-graph-update'
[arvados.git] / services / keepstore / metrics.go
index d119bd803763b97a00cd1bd8561cb1ac5f5eaf81..235c41891312ca6592d560678cdce78543adcce1 100644 (file)
@@ -128,3 +128,10 @@ func newVolumeMetricsVecs(reg *prometheus.Registry) *volumeMetricsVecs {
 
        return m
 }
+
+func (vm *volumeMetricsVecs) getCounterVecsFor(lbls prometheus.Labels) (opsCV, errCV, ioCV *prometheus.CounterVec) {
+       opsCV = vm.opsCounters.MustCurryWith(lbls)
+       errCV = vm.errCounters.MustCurryWith(lbls)
+       ioCV = vm.ioBytes.MustCurryWith(lbls)
+       return
+}