count number of volumes and ec shards

This commit is contained in:
Chris Lu
2019-06-16 02:24:15 -07:00
parent ff6a6dd11e
commit 289fd7eb39
5 changed files with 20 additions and 0 deletions

View File

@@ -55,6 +55,14 @@ var (
Name: "volumes",
Help: "Number of volumes.",
})
VolumeServerEcShardCounter = prometheus.NewGauge(
prometheus.GaugeOpts{
Namespace: "SeaweedFS",
Subsystem: "volumeServer",
Name: "ecShards",
Help: "Number of EC shards.",
})
)
func init() {
@@ -65,6 +73,7 @@ func init() {
VolumeServerGather.MustRegister(VolumeServerRequestCounter)
VolumeServerGather.MustRegister(VolumeServerRequestHistogram)
VolumeServerGather.MustRegister(VolumeServerVolumeCounter)
VolumeServerGather.MustRegister(VolumeServerEcShardCounter)
}