From 32b4052fc2f4922f3120178b1209ebcff53b856b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Tich=C3=A1k?= Date: Thu, 24 Apr 2025 11:11:34 +0200 Subject: [PATCH] [core] disable warning for too metrics and increase metrics buffer size --- common/monitoring/monitoring.go | 3 --- core/config.go | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/common/monitoring/monitoring.go b/common/monitoring/monitoring.go index 527cf293..e3ec257f 100644 --- a/common/monitoring/monitoring.go +++ b/common/monitoring/monitoring.go @@ -8,7 +8,6 @@ import ( "time" "github.com/AliceO2Group/Control/common/logger" - "github.com/AliceO2Group/Control/common/logger/infologger" "github.com/sirupsen/logrus" ) @@ -67,8 +66,6 @@ func eventLoop() { case metric := <-metricsChannel: if len(metrics) < metricsLimit { metrics = append(metrics, metric) - } else { - log.WithField("level", infologger.IL_Devel).Warn("too many metrics waiting to be scraped. Are you sure that metrics scraping is running?") } case <-endChannel: diff --git a/core/config.go b/core/config.go index 9b48de8b..9d7513f7 100644 --- a/core/config.go +++ b/core/config.go @@ -129,7 +129,7 @@ func setDefaults() error { viper.SetDefault("enableKafka", true) viper.SetDefault("logAllIL", false) viper.SetDefault("metricsEndpoint", "8088/ecsmetrics") - viper.SetDefault("metricsBufferSize", 10000) + viper.SetDefault("metricsBufferSize", 1000000) return nil }