diff options
| author | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2024-07-31 01:21:35 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-30 13:21:35 -0700 |
| commit | b2ffcdaab2e662d85913eee7fa11eddb57d3052e (patch) | |
| tree | 372561ac009a61554c070da31dae7de096a00fcc /weed/stats/metrics.go | |
| parent | 69bcdf470bf62e9ba71da283d60a203bdbcb3fcb (diff) | |
| download | seaweedfs-b2ffcdaab2e662d85913eee7fa11eddb57d3052e.tar.xz seaweedfs-b2ffcdaab2e662d85913eee7fa11eddb57d3052e.zip | |
[master] do sync grow request only if absolutely necessary (#5821)
* do sync grow request only if absolutely necessary
https://github.com/seaweedfs/seaweedfs/pull/5819
* remove check VolumeGrowStrategy Threshold on PickForWrite
* fix fmt.Errorf
Diffstat (limited to 'weed/stats/metrics.go')
| -rw-r--r-- | weed/stats/metrics.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/weed/stats/metrics.go b/weed/stats/metrics.go index faf87ff09..134485946 100644 --- a/weed/stats/metrics.go +++ b/weed/stats/metrics.go @@ -78,6 +78,14 @@ var ( Help: "Number of volumes in volume layouts", }, []string{"collection", "dataCenter", "type"}) + MasterPickForWriteErrorCounter = prometheus.NewCounter( + prometheus.CounterOpts{ + Namespace: Namespace, + Subsystem: "master", + Name: "pick_for_write_error", + Help: "Counter of master pick for write error", + }) + MasterLeaderChangeCounter = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: Namespace, |
