Merge pull request #1849 from hashicorp/f-leader-stats

Add leader address to consul stats
pull/1852/head
James Phillips 9 years ago
commit 4a35b71289

@ -733,6 +733,7 @@ func (s *Server) Stats() map[string]map[string]string {
"consul": map[string]string{
"server": "true",
"leader": fmt.Sprintf("%v", s.IsLeader()),
"leader_addr": s.raft.Leader(),
"bootstrap": fmt.Sprintf("%v", s.config.Bootstrap),
"known_datacenters": toString(uint64(len(s.remoteConsuls))),
},

Loading…
Cancel
Save