Skip to content

Commit

Permalink
Emit raft-boltdb metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeler committed Dec 2, 2021
1 parent e47cecc commit c7a9484
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions agent/consul/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c7a9484

Please sign in to comment.