diff --git a/go/weed/weed_server/master_server_handlers_ui.go b/go/weed/weed_server/master_server_handlers_ui.go index cdcae714e..3d96234bb 100644 --- a/go/weed/weed_server/master_server_handlers_ui.go +++ b/go/weed/weed_server/master_server_handlers_ui.go @@ -14,12 +14,14 @@ func (ms *MasterServer) uiStatusHandler(w http.ResponseWriter, r *http.Request) args := struct { Version string Topology interface{} + Leader string Peers interface{} Stats map[string]interface{} Counters *stats.ServerStats }{ util.VERSION, ms.Topo.ToMap(), + ms.Topo.RaftServer.Leader(), ms.Topo.RaftServer.Peers(), infos, serverStats, diff --git a/go/weed/weed_server/master_ui/templates.go b/go/weed/weed_server/master_ui/templates.go index 96b8bd5ce..fb297398b 100644 --- a/go/weed/weed_server/master_ui/templates.go +++ b/go/weed/weed_server/master_ui/templates.go @@ -29,6 +29,10 @@ var StatusTpl = template.Must(template.New("status").Parse(`