mirror of
https://github.com/status-im/consul.git
synced 2025-02-03 09:24:25 +00:00
Merge pull request #1849 from hashicorp/f-leader-stats
Add leader address to consul stats
This commit is contained in:
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…
x
Reference in New Issue
Block a user