diff options
| author | chrislu <chris.lu@gmail.com> | 2023-10-03 08:28:52 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2023-10-03 08:28:52 -0700 |
| commit | 6ebe26a76541270a3c403e67e49beeca9a9aad58 (patch) | |
| tree | 13339ea2cc50ba9a5ccf904e8511a0ae27a692e7 /weed/storage/erasure_coding | |
| parent | 7540d43ee93564c41537dbed09929744a68fb7d7 (diff) | |
| download | seaweedfs-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/erasure_coding')
| -rw-r--r-- | weed/storage/erasure_coding/ec_shard.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/erasure_coding/ec_shard.go b/weed/storage/erasure_coding/ec_shard.go index 08a50ebf7..19ee17636 100644 --- a/weed/storage/erasure_coding/ec_shard.go +++ b/weed/storage/erasure_coding/ec_shard.go @@ -44,7 +44,7 @@ func NewEcVolumeShard(diskType types.DiskType, dirname string, collection string } v.ecdFileSize = ecdFi.Size() - stats.VolumeServerVolumeCounter.WithLabelValues(v.Collection, "ec_shards", string(v.DiskType)).Inc() + stats.VolumeServerVolumeCounter.WithLabelValues(v.Collection, "ec_shards").Inc() return } @@ -88,7 +88,7 @@ func (shard *EcVolumeShard) Close() { func (shard *EcVolumeShard) Destroy() { os.Remove(shard.FileName() + ToExt(int(shard.ShardId))) - stats.VolumeServerVolumeCounter.WithLabelValues(shard.Collection, "ec_shards", string(shard.DiskType)).Dec() + stats.VolumeServerVolumeCounter.WithLabelValues(shard.Collection, "ec_shards").Dec() } func (shard *EcVolumeShard) ReadAt(buf []byte, offset int64) (int, error) { |
