aboutsummaryrefslogtreecommitdiff
path: root/weed/stats/metrics.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/stats/metrics.go')
-rw-r--r--weed/stats/metrics.go8
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,