diff options
| author | hilimd <68371223+hilimd@users.noreply.github.com> | 2020-10-18 09:44:04 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-18 09:44:04 +0800 |
| commit | 62af2d961d62f01510d0ad25569f4b82e4809996 (patch) | |
| tree | 109e26db37bb2365973c70983833da7305b69f34 /weed/stats/metrics.go | |
| parent | 5c2e409ffe0e9517e597ebf89e9eb3ba55883f28 (diff) | |
| parent | c0ab458671f2859990caab70b59041513d90edac (diff) | |
| download | seaweedfs-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.go | 9 |
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) |
