aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/erasure_coding
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-06-17 21:02:50 -0700
committerChris Lu <chris.lu@gmail.com>2019-06-17 21:02:50 -0700
commit115558e5f529f119ca4ba60a45a28fc7bb8d25ae (patch)
treeef3a686e61f4b6e3705109e1f0acb8d051474114 /weed/storage/erasure_coding
parentd8ed73926dc79aaea57e9eb305c718e82dace64c (diff)
downloadseaweedfs-115558e5f529f119ca4ba60a45a28fc7bb8d25ae.tar.xz
seaweedfs-115558e5f529f119ca4ba60a45a28fc7bb8d25ae.zip
adjust counters
Diffstat (limited to 'weed/storage/erasure_coding')
-rw-r--r--weed/storage/erasure_coding/ec_shard.go4
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 bcfa2c721..b280157b8 100644
--- a/weed/storage/erasure_coding/ec_shard.go
+++ b/weed/storage/erasure_coding/ec_shard.go
@@ -37,7 +37,7 @@ func NewEcVolumeShard(dirname string, collection string, id needle.VolumeId, sha
}
v.ecdFileSize = ecdFi.Size()
- stats.VolumeServerEcShardCounter.Inc()
+ stats.VolumeServerVolumeCounter.WithLabelValues(v.Collection, "ec_shards").Inc()
return
}
@@ -81,7 +81,7 @@ func (shard *EcVolumeShard) Close() {
func (shard *EcVolumeShard) Destroy() {
os.Remove(shard.FileName() + ToExt(int(shard.ShardId)))
- stats.VolumeServerEcShardCounter.Dec()
+ stats.VolumeServerVolumeCounter.WithLabelValues(shard.Collection, "ec_shards").Inc()
}
func (shard *EcVolumeShard) ReadAt(buf []byte, offset int64) (int, error) {