Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/host-profiler/subcommands/run/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func runHostProfilerCommand(ctx context.Context, cliParams *cliParams) error {
remotehostnameimpl.Module(),
fx.Supply(core.BundleParams{
ConfigParams: config.NewAgentParams(cliParams.GlobalParams.CoreConfPath),
LogParams: log.ForDaemon(command.LoggerName, "log_file", defaultpaths.GetDefaultHostProfilerLogFile()),
LogParams: log.ForDaemon(command.LoggerName, "hostprofiler.log_file", defaultpaths.GetDefaultHostProfilerLogFile()),
}),
fx.Provide(collectorimpl.NewExtraFactoriesWithAgentCore),
fx.Invoke(func(l log.Component) {
Expand Down
4 changes: 4 additions & 0 deletions pkg/config/schema/yaml/core_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8763,6 +8763,10 @@ properties:
node_type: setting
type: integer
default: 7778
log_file:
node_type: setting
type: string
default: ${log_path}/host-profiler.log
tags:
- full-agent-only:true
hpa_configmap_name:
Expand Down
1 change: 1 addition & 0 deletions pkg/config/setup/common_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,7 @@ func initCoreAgentFull(config pkgconfigmodel.Setup) {
// Integrations excluded from these restrictions.
config.BindEnvAndSetDefault("integration_security_excluded_checks", []string{})

config.BindEnvAndSetDefault("hostprofiler.log_file", "${log_path}/host-profiler.log")
Comment thread
theomagellan marked this conversation as resolved.
config.BindEnvAndSetDefault("hostprofiler.debug.verbosity", "")
config.BindEnvAndSetDefault("hostprofiler.additional_http_headers", map[string]string{})
config.BindEnvAndSetDefault("hostprofiler.ddprofiling.enabled", false)
Expand Down
Loading