mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-24 08:46:54 +08:00
metrics: disk size for <collection, normal/EC>
This commit is contained in:
@@ -60,23 +60,17 @@ var (
|
||||
prometheus.GaugeOpts{
|
||||
Namespace: "SeaweedFS",
|
||||
Subsystem: "volumeServer",
|
||||
Name: "ecShards",
|
||||
Name: "ec_shards",
|
||||
Help: "Number of EC shards.",
|
||||
})
|
||||
VolumeServerVolumeSizeGauge = prometheus.NewGauge(
|
||||
|
||||
VolumeServerDiskSizeGauge = prometheus.NewGaugeVec(
|
||||
prometheus.GaugeOpts{
|
||||
Namespace: "SeaweedFS",
|
||||
Subsystem: "volumeServer",
|
||||
Name: "totalVolumeSize",
|
||||
Name: "total_disk_size",
|
||||
Help: "Actual disk size used by volumes.",
|
||||
})
|
||||
VolumeServerEcShardSizeGauge = prometheus.NewGauge(
|
||||
prometheus.GaugeOpts{
|
||||
Namespace: "SeaweedFS",
|
||||
Subsystem: "volumeServer",
|
||||
Name: "totalEcShardSize",
|
||||
Help: "Actual disk size used by ec shards.",
|
||||
})
|
||||
}, []string{"collection", "type"})
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -88,8 +82,7 @@ func init() {
|
||||
VolumeServerGather.MustRegister(VolumeServerRequestHistogram)
|
||||
VolumeServerGather.MustRegister(VolumeServerVolumeCounter)
|
||||
VolumeServerGather.MustRegister(VolumeServerEcShardCounter)
|
||||
VolumeServerGather.MustRegister(VolumeServerVolumeSizeGauge)
|
||||
VolumeServerGather.MustRegister(VolumeServerEcShardSizeGauge)
|
||||
VolumeServerGather.MustRegister(VolumeServerDiskSizeGauge)
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user