From ad0283b728f6e7f7766eee83a767fe49fcdf02ad Mon Sep 17 00:00:00 2001 From: zhijian Date: Thu, 1 Aug 2024 17:55:03 +0800 Subject: [PATCH] badger: disable badger metrics (#5045) --- pkg/meta/tkv_badger.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/meta/tkv_badger.go b/pkg/meta/tkv_badger.go index bf42ceb6d722..8ff93eb85f70 100644 --- a/pkg/meta/tkv_badger.go +++ b/pkg/meta/tkv_badger.go @@ -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