Skip to content

Commit

Permalink
Drop non-zero metrics periodic logs in monitoring config
Browse files Browse the repository at this point in the history
  • Loading branch information
pchila committed Apr 30, 2024
1 parent 30488b8 commit cc97fae
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions internal/pkg/agent/application/monitoring/v1_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,16 @@ func (b *BeatsMonitor) injectLogsInput(cfg map[string]interface{}, components []
},
},
},
// drop periodic metrics logs (those are useful mostly in diagnostic dumps where we collect log files)
map[string]interface{}{
"drop_event": map[string]interface{}{
"when": map[string]interface{}{
"regexp": map[string]interface{}{
"message": "^Non-zero metrics in the last",
},
},
},
},
// copy original dataset so we can drop the dataset field
map[string]interface{}{
"copy_fields": map[string]interface{}{
Expand Down

0 comments on commit cc97fae

Please sign in to comment.