From 80d1d88590f4956e5ee494424a4ebb26d959d641 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Thu, 25 Aug 2016 15:39:19 -0700 Subject: [PATCH] Removes leader_lease_timeout from stats. --- consul/server.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/consul/server.go b/consul/server.go index 94f158ed05..ab240ce45f 100644 --- a/consul/server.go +++ b/consul/server.go @@ -820,12 +820,11 @@ func (s *Server) Stats() map[string]map[string]string { s.remoteLock.RUnlock() stats := map[string]map[string]string{ "consul": map[string]string{ - "server": "true", - "leader": fmt.Sprintf("%v", s.IsLeader()), - "leader_addr": string(s.raft.Leader()), - "bootstrap": fmt.Sprintf("%v", s.config.Bootstrap), - "known_datacenters": toString(uint64(numKnownDCs)), - "leader_lease_timeout": fmt.Sprintf("%v", s.config.RaftConfig.LeaderLeaseTimeout), + "server": "true", + "leader": fmt.Sprintf("%v", s.IsLeader()), + "leader_addr": string(s.raft.Leader()), + "bootstrap": fmt.Sprintf("%v", s.config.Bootstrap), + "known_datacenters": toString(uint64(numKnownDCs)), }, "raft": s.raft.Stats(), "serf_lan": s.serfLAN.Stats(),