Skip to content
This repository has been archived by the owner on Aug 30, 2019. It is now read-only.

Commit

Permalink
Merge pull request #205 from DataDog/nicolas/update-doc
Browse files Browse the repository at this point in the history
update the doc from the one in dogweb
  • Loading branch information
galdor authored Feb 2, 2017
2 parents 7152b79 + dd743d4 commit 748ade8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
The trace-agent sources configuration from the following locations:

1. The path pointed to by the `-ddconfig` command line flag (default: `/etc/dd-agent/datadog.conf`)
2. Environment variables: See full list below
2. The path pointed to by the `-config` command line flag (default: `/etc/datadog/trace-agent.ini`)
3. Environment variables: See full list below


Configuration specified via environment variables will override configuration specified in `-ddconfig`
Environment variables will override settings defined in configuration files.

## Classic configuration values, and how the trace-agent treats them
Note that changing these will also change the behavior of the `datadog-agent` running on the same host.
Expand All @@ -15,6 +16,9 @@ In the file pointed to by `-ddconfig`

```
[Main]
# Enable the trace agent.
apm_enabled = true
# trace-agent will use this hostname when reporting to the Datadog backend.
# default: stdout of `hostname`
hostname = myhost
Expand All @@ -37,7 +41,7 @@ log_level = INFO
```

## APM-specific configuration values
In the file pointed to by `-ddconfig`
In the file pointed to by `-config`

```
[trace.sampler]
Expand Down Expand Up @@ -65,6 +69,7 @@ We allow overriding a subset of configuration values from the environment. These
can be useful when running the agent in a Docker container or in other situations
where env vars are preferrable to static files

- `DD_APM_ENABLED` - overrides `[Main] apm_enabled`
- `DD_HOSTNAME` - overrides `[Main] hostname`
- `DD_API_KEY` - overrides `[Main] api_key`
- `DD_DOGSTATSD_PORT` - overrides `[Main] dogstatsd_port`
Expand Down

0 comments on commit 748ade8

Please sign in to comment.