From a6136936d294f29285d08f6a834fda6aca403c67 Mon Sep 17 00:00:00 2001 From: Mohamed Abukar Date: Tue, 19 Oct 2021 11:18:24 +0300 Subject: [PATCH] Don't enforce namespace for metrics Signed-off-by: Mohamed Abukar Change-Id: I23cd2b778c979c67f44eb4991c204074004cb9d1 --- pkg/xapp/metrics.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/xapp/metrics.go b/pkg/xapp/metrics.go index 8059891..ef5ba30 100644 --- a/pkg/xapp/metrics.go +++ b/pkg/xapp/metrics.go @@ -300,10 +300,6 @@ func NewMetrics(url, namespace string, r *mux.Router) *Metrics { if url == "" { url = "/ric/v1/metrics" } - if namespace == "" { - namespace = "ricxapp" - } - Logger.Info("Serving metrics on: url=%s namespace=%s", url, namespace) // Expose 'metrics' endpoint with standard golang metrics used by prometheus -- 2.16.6