Skip to content

Commit 003845d

Browse files
authored
Update environment variables for APM and Process (DataDog#8393)
* Update environment variables for APM and Process dropping `_config` is inaccurate. Logs Agent, as of this writing do, does not have anything specific and follows `DD_LOGS_CONFIG_*` * fix bullets * fix yaml indent * yaml
1 parent 1874f33 commit 003845d

File tree

1 file changed

+32
-7
lines changed

1 file changed

+32
-7
lines changed

content/en/agent/guide/environment-variables.md

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,36 @@ In general, use the following rules:
6060

6161
### Exceptions
6262

63-
* For the collection Agents (APM, process, and logs), drop the `_config` in the option name, for example:
64-
```yaml
65-
apm_config:
66-
enabled: true
67-
# DD_APM_ENABLED=true
68-
```
63+
- Not all `datadog.yaml` options are available with environment variables. Refer to [config.go][4] in the Datadog Agent GitHub repo. Options with environment variables start with `config.BindEnv*`.
6964

70-
* Not all `datadog.yaml` options are available with environment variables. Refer to [config.go][4] in the Datadog Agent GitHub repo. Options with environment variables start with `config.BindEnv*`.
65+
- Component-specific environment variables not listed in [config.go][4] may also be supported.
66+
67+
- **APM Trace Agent**
68+
69+
- [Docker APM Agent Environment Variables][5]
70+
- [trace-agent env.go][6]
71+
- example
72+
73+
```yaml
74+
apm_config:
75+
enabled: true
76+
env: dev
77+
# DD_APM_ENABLED=true
78+
# DD_APM_ENV=dev
79+
```
80+
81+
- **Live Process Agent**
82+
83+
- [process-agent config.go][7]
84+
- example
85+
86+
```yaml
87+
process_config:
88+
enabled: true
89+
process_dd_url: https://process.datadoghq.com
90+
# DD_PROCESS_AGENT_ENABLED=true
91+
# DD_PROCESS_AGENT_URL=https://process.datadoghq.com
92+
```
7193

7294
## Further Reading
7395

@@ -77,3 +99,6 @@ In general, use the following rules:
7799
[2]: /getting_started/tagging/unified_service_tagging
78100
[3]: /agent/proxy/#environment-variables
79101
[4]: https://github.com/DataDog/datadog-agent/blob/master/pkg/config/config.go
102+
[5]: https://docs.datadoghq.com/agent/docker/apm/#docker-apm-agent-environment-variables
103+
[6]: https://github.com/DataDog/datadog-agent/blob/master/pkg/trace/config/env.go
104+
[7]: https://github.com/DataDog/datadog-agent/blob/master/pkg/process/config/config.go

0 commit comments

Comments
 (0)