From: Mohamed Abukar Date: Tue, 19 Oct 2021 08:18:24 +0000 (+0300) Subject: Don't enforce namespace for metrics X-Git-Tag: v0.9.7^0 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=a6136936d294f29285d08f6a834fda6aca403c67;p=ric-plt%2Fxapp-frame.git Don't enforce namespace for metrics Signed-off-by: Mohamed Abukar Change-Id: I23cd2b778c979c67f44eb4991c204074004cb9d1 --- 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