Adding the raft leader addr to server stats

This commit is contained in:
Diptanu Choudhury 2016-04-03 16:38:39 -07:00
parent 41087f2c33
commit d472dc2988

View file

@ -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))),
},