mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 22:34:55 +00:00
Removes leader_lease_timeout from stats.
This commit is contained in:
parent
17b70c7efd
commit
80d1d88590
@ -820,12 +820,11 @@ func (s *Server) Stats() map[string]map[string]string {
|
|||||||
s.remoteLock.RUnlock()
|
s.remoteLock.RUnlock()
|
||||||
stats := map[string]map[string]string{
|
stats := map[string]map[string]string{
|
||||||
"consul": map[string]string{
|
"consul": map[string]string{
|
||||||
"server": "true",
|
"server": "true",
|
||||||
"leader": fmt.Sprintf("%v", s.IsLeader()),
|
"leader": fmt.Sprintf("%v", s.IsLeader()),
|
||||||
"leader_addr": string(s.raft.Leader()),
|
"leader_addr": string(s.raft.Leader()),
|
||||||
"bootstrap": fmt.Sprintf("%v", s.config.Bootstrap),
|
"bootstrap": fmt.Sprintf("%v", s.config.Bootstrap),
|
||||||
"known_datacenters": toString(uint64(numKnownDCs)),
|
"known_datacenters": toString(uint64(numKnownDCs)),
|
||||||
"leader_lease_timeout": fmt.Sprintf("%v", s.config.RaftConfig.LeaderLeaseTimeout),
|
|
||||||
},
|
},
|
||||||
"raft": s.raft.Stats(),
|
"raft": s.raft.Stats(),
|
||||||
"serf_lan": s.serfLAN.Stats(),
|
"serf_lan": s.serfLAN.Stats(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user