From 68e629a476e1ad08e6a758f6c48c4cc9811c5b80 Mon Sep 17 00:00:00 2001 From: Matt Keeler Date: Thu, 2 Dec 2021 16:52:42 -0500 Subject: [PATCH] Emit raft-boltdb metrics --- agent/consul/server.go | 3 +++ 1 file changed, 3 insertions(+) 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 {