diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-06-17 21:02:50 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-06-17 21:02:50 -0700 |
| commit | 115558e5f529f119ca4ba60a45a28fc7bb8d25ae (patch) | |
| tree | ef3a686e61f4b6e3705109e1f0acb8d051474114 /weed/stats/metrics.go | |
| parent | d8ed73926dc79aaea57e9eb305c718e82dace64c (diff) | |
| download | seaweedfs-115558e5f529f119ca4ba60a45a28fc7bb8d25ae.tar.xz seaweedfs-115558e5f529f119ca4ba60a45a28fc7bb8d25ae.zip | |
adjust counters
Diffstat (limited to 'weed/stats/metrics.go')
| -rw-r--r-- | weed/stats/metrics.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/weed/stats/metrics.go b/weed/stats/metrics.go index 2912bd34e..4147fd067 100644 --- a/weed/stats/metrics.go +++ b/weed/stats/metrics.go @@ -48,20 +48,20 @@ var ( Buckets: prometheus.ExponentialBuckets(0.0001, 2, 24), }, []string{"type"}) - VolumeServerVolumeCounter = prometheus.NewGauge( + VolumeServerVolumeCounter = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: "SeaweedFS", Subsystem: "volumeServer", Name: "volumes", - Help: "Number of volumes.", - }) + Help: "Number of volumes or shards.", + }, []string{"collection", "type"}) - VolumeServerEcShardCounter = prometheus.NewGauge( + VolumeServerMaxVolumeCounter = prometheus.NewGauge( prometheus.GaugeOpts{ Namespace: "SeaweedFS", Subsystem: "volumeServer", - Name: "ec_shards", - Help: "Number of EC shards.", + Name: "volumes", + Help: "Maximum number of volumes.", }) VolumeServerDiskSizeGauge = prometheus.NewGaugeVec( @@ -81,7 +81,7 @@ func init() { VolumeServerGather.MustRegister(VolumeServerRequestCounter) VolumeServerGather.MustRegister(VolumeServerRequestHistogram) VolumeServerGather.MustRegister(VolumeServerVolumeCounter) - VolumeServerGather.MustRegister(VolumeServerEcShardCounter) + VolumeServerGather.MustRegister(VolumeServerMaxVolumeCounter) VolumeServerGather.MustRegister(VolumeServerDiskSizeGauge) } |
