From 55b639b45572e3a93403a32845305d3db17e1287 Mon Sep 17 00:00:00 2001 From: sgayangi Date: Fri, 15 Mar 2024 14:33:14 +0530 Subject: [PATCH] Update logs in metrics collection --- adapter/internal/operator/operator.go | 2 +- common-controller/internal/operator/operator.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/adapter/internal/operator/operator.go b/adapter/internal/operator/operator.go index b3dbf3d15..e4272b520 100644 --- a/adapter/internal/operator/operator.go +++ b/adapter/internal/operator/operator.go @@ -145,7 +145,7 @@ func InitOperator(metricsConfig config.Metrics) { // Register the metrics collector if metricsConfig.Enabled && strings.EqualFold(metricsConfig.Type, metrics.PrometheusMetricType) { - loggers.LoggerAPKOperator.Info("Starting Prometheus Metrics Server ....") + loggers.LoggerAPKOperator.Info("Registering Prometheus metrics collector.") go metrics.RegisterPrometheusCollector() } diff --git a/common-controller/internal/operator/operator.go b/common-controller/internal/operator/operator.go index f10e687d2..186bcbad3 100644 --- a/common-controller/internal/operator/operator.go +++ b/common-controller/internal/operator/operator.go @@ -208,7 +208,7 @@ func InitOperator(metricsConfig config.Metrics) { // Register the metrics collector if metricsConfig.Enabled && strings.EqualFold(metricsConfig.Type, metrics.PrometheusMetricType) { - loggers.LoggerAPKOperator.Info("Starting Prometheus Metrics Server ....") + loggers.LoggerAPKOperator.Info("Registering Prometheus metrics collector.") go metrics.RegisterPrometheusCollector() }