From d472dc29884bd8d5d1a3fecc6d85687d2ebeac30 Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Sun, 3 Apr 2016 16:38:39 -0700 Subject: [PATCH] Adding the raft leader addr to server stats --- nomad/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/nomad/server.go b/nomad/server.go index 8b9712cd0..56090c4ad 100644 --- a/nomad/server.go +++ b/nomad/server.go @@ -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))), },