Skip to content

Commit

Permalink
more docs
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT committed Jan 27, 2025
1 parent 42de41e commit e272468
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cmd/opampsupervisor/specification/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ agent:

Please be aware that when using the `.agent.config_files` parameter,
the configuration files specified are applied after the configuration from the OpAMP server.
After the configuration files, arguments present in `.agent.args` are passed to the executable binary.
The environmanet variables specified in `.agent.env` are set in the collector process environment.

The following configuration:

Expand All @@ -184,12 +186,17 @@ agent:
config_files:
- './custom-config.yaml'
- './another-custom-config.yaml'
args:
- '--feature-gates exporter.datadogexporter.UseLogsAgentExporter,exporter.datadogexporter.metricexportnativeclient'
env:
HOME: '/dev/home'
GO_HOME: '~/go'
```
results to the following startup parameters for the collector process:
```shell
./otel-binary --config opamp-config.yaml --config custom-config.yaml --config another-custom-config.yaml
./otel-binary --config opamp-config.yaml --config custom-config.yaml --config another-custom-config.yaml --feature-gates exporter.datadogexporter.UseLogsAgentExporter,exporter.datadogexporter.metricexportnativeclient
```

In case of conflicting values in the configuration files, the latest applied value takes precedence.
Expand Down

0 comments on commit e272468

Please sign in to comment.