diff --git a/agent/consul/server.go b/agent/consul/server.go index 45acf9535..14468439d 100644 --- a/agent/consul/server.go +++ b/agent/consul/server.go @@ -742,6 +742,9 @@ func (s *Server) setupRaft() error { s.raftStore = store stable = store + // start publishing boltdb metrics + go store.RunMetrics(&lib.StopChannelContext{StopCh: s.shutdownCh}, 0) + // Wrap the store in a LogCache to improve performance. cacheStore, err := raft.NewLogCache(raftLogCacheSize, store) if err != nil {