Revert "Revert "Revert "Add disk type to prometheus metrics" (#4777)""

This reverts commit 567d788928.
This commit is contained in:
chrislu
2023-10-03 08:28:52 -07:00
parent 7540d43ee9
commit 6ebe26a765
5 changed files with 9 additions and 8 deletions

View File

@@ -124,7 +124,7 @@ func (v *Volume) CommitCompact() error {
}
}
v.DataBackend = nil
stats.VolumeServerVolumeCounter.WithLabelValues(v.Collection, "volume", v.DiskType().ReadableString()).Dec()
stats.VolumeServerVolumeCounter.WithLabelValues(v.Collection, "volume").Dec()
var e error
if e = v.makeupDiff(v.FileName(".cpd"), v.FileName(".cpx"), v.FileName(".dat"), v.FileName(".idx")); e != nil {