Skip to content

Commit cc97fae

Browse files
committed
Drop non-zero metrics periodic logs in monitoring config
1 parent 30488b8 commit cc97fae

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

internal/pkg/agent/application/monitoring/v1_monitor.go

+10
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,16 @@ func (b *BeatsMonitor) injectLogsInput(cfg map[string]interface{}, components []
349349
},
350350
},
351351
},
352+
// drop periodic metrics logs (those are useful mostly in diagnostic dumps where we collect log files)
353+
map[string]interface{}{
354+
"drop_event": map[string]interface{}{
355+
"when": map[string]interface{}{
356+
"regexp": map[string]interface{}{
357+
"message": "^Non-zero metrics in the last",
358+
},
359+
},
360+
},
361+
},
352362
// copy original dataset so we can drop the dataset field
353363
map[string]interface{}{
354364
"copy_fields": map[string]interface{}{

0 commit comments

Comments
 (0)