aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2023-10-03 08:28:52 -0700
committerchrislu <chris.lu@gmail.com>2023-10-03 08:28:52 -0700
commit6ebe26a76541270a3c403e67e49beeca9a9aad58 (patch)
tree13339ea2cc50ba9a5ccf904e8511a0ae27a692e7 /weed/storage/volume.go
parent7540d43ee93564c41537dbed09929744a68fb7d7 (diff)
downloadseaweedfs-6ebe26a76541270a3c403e67e49beeca9a9aad58.tar.xz
seaweedfs-6ebe26a76541270a3c403e67e49beeca9a9aad58.zip
Revert "Revert "Revert "Add disk type to prometheus metrics" (#4777)""
This reverts commit 567d78892860f87c207beb56a3323b4b9e90dfc9.
Diffstat (limited to 'weed/storage/volume.go')
-rw-r--r--weed/storage/volume.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/volume.go b/weed/storage/volume.go
index 8530bc2e7..232930b80 100644
--- a/weed/storage/volume.go
+++ b/weed/storage/volume.go
@@ -246,7 +246,7 @@ func (v *Volume) doClose() {
glog.Warningf("Volume Close fail to sync volume %d", v.Id)
}
v.DataBackend = nil
- stats.VolumeServerVolumeCounter.WithLabelValues(v.Collection, "volume", v.DiskType().ReadableString()).Dec()
+ stats.VolumeServerVolumeCounter.WithLabelValues(v.Collection, "volume").Dec()
}
}