| NAME | Example Value |
|---|---|
GIT_REPO |
github.com/username/some-repo-here.git |
GIT_BRANCH |
master |
GIT_EMAIL |
email@example.com |
GIT_NAME |
John Do |
GIT_PERSONAL_TOKEN |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
GIT_USERNAME |
YourUsernameHere |
GIT_REPULL |
1 |
-
DD_HOSTNAMEset the hostname (write it indatadog.conf) -
TAGSset host tags. Add-e TAGS=simple-tag-0,tag-key-1:tag-value-1to use [simple-tag-0, tag-key-1:tag-value-1] as host tags. -
EC2_TAGSset EC2 host tags. Add-e EC2_TAGS=yesto use EC2 custom host tags. Requires an IAM role associated with the instance. -
LOG_LEVELset logging verbosity (CRITICAL, ERROR, WARNING, INFO, DEBUG). Add-e LOG_LEVEL=DEBUGto turn logs to debug mode. -
DD_LOGS_STDOUT: set it toyesto send all logs to stdout and stderr, for them to be processed by Docker. -
PROXY_HOST,PROXY_PORT,PROXY_USERandPROXY_PASSWORDset the proxy configuration. -
DD_URLset the Datadog intake server to send Agent data to (used when using an agent as a proxy ) -
NON_LOCAL_TRAFFICconfigures thenon_local_trafficoption in the agent which enables or disables statsd reporting from any external ip. You may find this useful to report metrics from your other containers. See network configuration for more details. This option is set to true by default in the image, and thedocker runcommand we provide in the example above disables it. Remove the-e NON_LOCAL_TRAFFIC=falsepart to enable it back. WARNING if you allow non-local traffic, make sure your agent container is not accessible from the Internet or other untrusted networks as it would allow anyone to submit metrics to it. -
SD_BACKEND,SD_CONFIG_BACKEND,SD_BACKEND_HOST,SD_BACKEND_PORT,SD_TEMPLATE_DIR,SD_CONSUL_TOKEN,SD_BACKEND_USERandSD_BACKEND_PASSWORDconfigure Autodiscovery (previously known as Service Discovery):SD_BACKEND: set todocker(the only supported backend) to enable Autodiscovery.SD_CONFIG_BACKEND: set toetcd,consul, orzkto use one of these key-value stores as a template source.SD_BACKEND_HOSTandSD_BACKEND_PORT: configure the connection to the key-value template source.SD_TEMPLATE_DIR: when using SD_CONFIG_BACKEND, set the path where the check configuration templates are located in the key-value store (default isdatadog/check_configs)SD_CONSUL_TOKEN: when using Consul as a template source and the Consul cluster requires authentication, set a token so the Datadog Agent can connect.SD_BACKEND_USERandSD_BACKEND_PASSWORD: when using etcd as a template source and it requires authentication, set a user and password so the Datadog Agent can connect.
-
DD_APM_ENABLEDrun the trace-agent along with the infrastructure agent, allowing the container to accept traces on 8126/tcp (This option is NOT available on Alpine Images) -
DD_PROCESS_AGENT_ENABLEDrun the process-agent along with the infrastructure agent, feeding data to the Live Process View and Live Containers View (This option is NOT available on Alpine Images) -
DD_COLLECT_LABELS_AS_TAGSEnables the collection of the listed labels as tags. Comma separated string, without spaces unless in quotes. Exemple:-e DD_COLLECT_LABELS_AS_TAGS='com.docker.label.foo, com.docker.label.bar'or-e DD_COLLECT_LABELS_AS_TAGS=com.docker.label.foo,com.docker.label.bar. -
MAX_TRACES_PER_SECOND: Specifies the maximum number of traces per second to sample for APM. Set to0to disable this limit.
Note: Some of those have alternative names, but with the same impact: it is possible to use DD_TAGS instead of TAGS, DD_LOG_LEVEL instead of LOG_LEVEL and DD_API_KEY instead of API_KEY.