Skip to content

Commit

Permalink
badger: disable badger metrics (#5045)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro authored Aug 1, 2024
1 parent 5cf51ad commit ad0283b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/meta/tkv_badger.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ func (c *badgerClient) gc() {}
func newBadgerClient(addr string) (tkvClient, error) {
opt := badger.DefaultOptions(addr)
opt.Logger = utils.GetLogger("badger")
opt.MetricsEnabled = false
client, err := badger.Open(opt)
if err != nil {
return nil, err
Expand Down

0 comments on commit ad0283b

Please sign in to comment.