Skip to content

Commit 32b4052

Browse files
author
Michal Tichák
committed
[core] disable warning for too metrics and increase metrics buffer size
1 parent 468fb29 commit 32b4052

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

common/monitoring/monitoring.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"time"
99

1010
"github.com/AliceO2Group/Control/common/logger"
11-
"github.com/AliceO2Group/Control/common/logger/infologger"
1211
"github.com/sirupsen/logrus"
1312
)
1413

@@ -67,8 +66,6 @@ func eventLoop() {
6766
case metric := <-metricsChannel:
6867
if len(metrics) < metricsLimit {
6968
metrics = append(metrics, metric)
70-
} else {
71-
log.WithField("level", infologger.IL_Devel).Warn("too many metrics waiting to be scraped. Are you sure that metrics scraping is running?")
7269
}
7370

7471
case <-endChannel:

core/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func setDefaults() error {
129129
viper.SetDefault("enableKafka", true)
130130
viper.SetDefault("logAllIL", false)
131131
viper.SetDefault("metricsEndpoint", "8088/ecsmetrics")
132-
viper.SetDefault("metricsBufferSize", 10000)
132+
viper.SetDefault("metricsBufferSize", 1000000)
133133
return nil
134134
}
135135

0 commit comments

Comments
 (0)