Don't enforce namespace for metrics 86/6886/1 v0.9.7
authorMohamed Abukar <abukar.mohamed@nokia.com>
Tue, 19 Oct 2021 08:18:24 +0000 (11:18 +0300)
committerMohamed Abukar <abukar.mohamed@nokia.com>
Tue, 19 Oct 2021 08:20:38 +0000 (11:20 +0300)
Signed-off-by: Mohamed Abukar <abukar.mohamed@nokia.com>
Change-Id: I23cd2b778c979c67f44eb4991c204074004cb9d1

pkg/xapp/metrics.go

index 8059891..ef5ba30 100644 (file)
@@ -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