From 8267fd38eb008a566d533325988bdca3f96d05b9 Mon Sep 17 00:00:00 2001 From: JordanRushing Date: Tue, 7 Jun 2022 16:43:00 -0500 Subject: [PATCH] Set `MetricsNamespace` configurable for MemberlistKV module in Loki Signed-off-by: JordanRushing --- pkg/loki/modules.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/loki/modules.go b/pkg/loki/modules.go index ea8446355205d..e71b47b948a77 100644 --- a/pkg/loki/modules.go +++ b/pkg/loki/modules.go @@ -812,6 +812,7 @@ func (t *Loki) initRuler() (_ services.Service, err error) { func (t *Loki) initMemberlistKV() (services.Service, error) { reg := prometheus.DefaultRegisterer + t.Cfg.MemberlistKV.MetricsNamespace = "loki" t.Cfg.MemberlistKV.MetricsRegisterer = reg t.Cfg.MemberlistKV.Codecs = []codec.Codec{ ring.GetCodec(),