Adding the raft leader addr to server stats
This commit is contained in:
parent
41087f2c33
commit
d472dc2988
|
@ -715,6 +715,7 @@ func (s *Server) Stats() map[string]map[string]string {
|
|||
"nomad": map[string]string{
|
||||
"server": "true",
|
||||
"leader": fmt.Sprintf("%v", s.IsLeader()),
|
||||
"leader_addr": s.raft.Leader(),
|
||||
"bootstrap": fmt.Sprintf("%v", s.config.Bootstrap),
|
||||
"known_regions": toString(uint64(len(s.peers))),
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue