mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix metrics master name
This commit is contained in:
parent
c9952759c4
commit
5c9259fa3c
|
@ -24,7 +24,7 @@ var (
|
||||||
prometheus.CounterOpts{
|
prometheus.CounterOpts{
|
||||||
Namespace: "SeaweedFS",
|
Namespace: "SeaweedFS",
|
||||||
Subsystem: "wdclient",
|
Subsystem: "wdclient",
|
||||||
Name: "connect updates",
|
Name: "connect_updates",
|
||||||
Help: "Counter of master client leader updates.",
|
Help: "Counter of master client leader updates.",
|
||||||
}, []string{"type"})
|
}, []string{"type"})
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ var (
|
||||||
prometheus.GaugeOpts{
|
prometheus.GaugeOpts{
|
||||||
Namespace: "SeaweedFS",
|
Namespace: "SeaweedFS",
|
||||||
Subsystem: "master",
|
Subsystem: "master",
|
||||||
Name: "is leader",
|
Name: "is_leader",
|
||||||
Help: "is leader",
|
Help: "is leader",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ var (
|
||||||
prometheus.CounterOpts{
|
prometheus.CounterOpts{
|
||||||
Namespace: "SeaweedFS",
|
Namespace: "SeaweedFS",
|
||||||
Subsystem: "master",
|
Subsystem: "master",
|
||||||
Name: "received heartbeats",
|
Name: "received_heartbeats",
|
||||||
Help: "Counter of master received heartbeat.",
|
Help: "Counter of master received heartbeat.",
|
||||||
}, []string{"type"})
|
}, []string{"type"})
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ var (
|
||||||
prometheus.CounterOpts{
|
prometheus.CounterOpts{
|
||||||
Namespace: "SeaweedFS",
|
Namespace: "SeaweedFS",
|
||||||
Subsystem: "master",
|
Subsystem: "master",
|
||||||
Name: "leader changes",
|
Name: "leader_changes",
|
||||||
Help: "Counter of master leader changes.",
|
Help: "Counter of master leader changes.",
|
||||||
}, []string{"type"})
|
}, []string{"type"})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue