Skip to content

Commit

Permalink
feat: add include field to observe agent config that propogates to OT…
Browse files Browse the repository at this point in the history
…EL host log receiver
  • Loading branch information
obs-gh-mattcotter committed Oct 29, 2024
1 parent 8342ccd commit 1597705
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion internal/config/configschema.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import (
)

type HostMonitoringLogsConfig struct {
Enabled bool `yaml:"enabled"`
Enabled bool `yaml:"enabled"`
Include []string `yaml:"include,omitempty"`
}

type HostMonitoringHostMetricsConfig struct {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
receivers:
filelog/host_monitoring:
include: [/hostfs/var/log/**/*.log, /hostfs/var/log/syslog]
include:
- /hostfs/var/log/**/*.log
- /hostfs/var/log/syslog]
{{- range .Logs.Include }}
- {{ . }}
{{- end }}
include_file_path: true
storage: file_storage
retry_on_failure:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
receivers:
filelog/host_monitoring:
include: [/var/log/**/*.log, /var/log/syslog]
include:
- /var/log/**/*.log
- /var/log/syslog
{{- range .Logs.Include }}
- {{ . }}
{{- end }}
include_file_path: true
storage: file_storage
retry_on_failure:
Expand Down

0 comments on commit 1597705

Please sign in to comment.