aboutsummaryrefslogtreecommitdiff
path: root/weed/stats/metrics.go
diff options
context:
space:
mode:
authorhilimd <68371223+hilimd@users.noreply.github.com>2020-10-18 09:44:04 +0800
committerGitHub <noreply@github.com>2020-10-18 09:44:04 +0800
commit62af2d961d62f01510d0ad25569f4b82e4809996 (patch)
tree109e26db37bb2365973c70983833da7305b69f34 /weed/stats/metrics.go
parent5c2e409ffe0e9517e597ebf89e9eb3ba55883f28 (diff)
parentc0ab458671f2859990caab70b59041513d90edac (diff)
downloadseaweedfs-62af2d961d62f01510d0ad25569f4b82e4809996.tar.xz
seaweedfs-62af2d961d62f01510d0ad25569f4b82e4809996.zip
Merge pull request #28 from chrislusf/master
sync
Diffstat (limited to 'weed/stats/metrics.go')
-rw-r--r--weed/stats/metrics.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/weed/stats/metrics.go b/weed/stats/metrics.go
index a60cda290..13ab3bae1 100644
--- a/weed/stats/metrics.go
+++ b/weed/stats/metrics.go
@@ -77,6 +77,14 @@ var (
Help: "Number of volumes or shards.",
}, []string{"collection", "type"})
+ VolumeServerReadOnlyVolumeGauge = prometheus.NewGaugeVec(
+ prometheus.GaugeOpts{
+ Namespace: "SeaweedFS",
+ Subsystem: "volumeServer",
+ Name: "read_only_volumes",
+ Help: "Number of read only volumes.",
+ }, []string{"collection", "type"})
+
VolumeServerMaxVolumeCounter = prometheus.NewGauge(
prometheus.GaugeOpts{
Namespace: "SeaweedFS",
@@ -122,6 +130,7 @@ func init() {
Gather.MustRegister(VolumeServerRequestHistogram)
Gather.MustRegister(VolumeServerVolumeCounter)
Gather.MustRegister(VolumeServerMaxVolumeCounter)
+ Gather.MustRegister(VolumeServerReadOnlyVolumeGauge)
Gather.MustRegister(VolumeServerDiskSizeGauge)
Gather.MustRegister(S3RequestCounter)