Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
9 changes: 5 additions & 4 deletions cmd/host-profiler/deploy/bundled/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ The following settings can be overridden in the Datadog Agent configuration for

### Diagnostics

| Name | Values | Default | Description |
|:-------------------------------|:------------------------------|:-------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `hostprofiler.hpflare.port` | int | `7778` | Local port used to collect Host Profiler flare diagnostics. Change this only if the default port conflicts with another service. |
| `hostprofiler.debug.verbosity` | `basic`, `normal`, `detailed` | _(disabled)_ | Enables the OpenTelemetry debug exporter for troubleshooting. See the [debug exporter verbosity documentation](https://pkg.go.dev/go.opentelemetry.io/collector/exporter/debugexporter#readme-verbosity-levels). Use temporarily because it can increase log volume. |
| Name | Values | Default | Description |
|:-------------------------------|:------------------------------|:-------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `hostprofiler.hpflare.port` | int | `7778` | Local port used to collect Host Profiler flare diagnostics. Change this only if the default port conflicts with another service. |
| `hostprofiler.debug.verbosity` | `basic`, `normal`, `detailed` | _(disabled)_ | Enables the OpenTelemetry debug exporter for troubleshooting. See the [debug exporter verbosity documentation](https://pkg.go.dev/go.opentelemetry.io/collector/exporter/debugexporter#readme-verbosity-levels). Use temporarily because it can increase log volume. |
| `hostprofiler.log_file` | string | `${log_path}/host-profiler.log` | Path to the Host Profiler log file. `${log_path}` resolves to the Agent's configured log directory. |

### Advanced export settings

Expand Down
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