A datadog.yaml tailored to what you monitor
The Datadog Agent is configured by a single datadog.yaml, but most of the file is boilerplate you only touch to enable a feature. This tool generates exactly the sections you need — site, tagging, logs, APM, processes, and DogStatsD — with the API key left as an environment placeholder.
How it works
The agent authenticates with an API key and sends data to a regional site endpoint such as datadoghq.com or datadoghq.eu; choosing the wrong site means data silently never arrives. The builder writes api_key: ${DD_API_KEY} so the secret is injected at runtime, never committed.
Unified service tagging ties everything together through env, service, and host tags, letting Datadog correlate a trace with its logs and metrics. Each feature is a self-contained block: logs_enabled plus a logs_config turns on log collection, apm_config.enabled opens the trace receiver on port 8126, process_config.process_collection powers the live process view, and use_dogstatsd exposes a StatsD server on port 8125 for custom application metrics. Toggling a feature off simply omits or disables its block so the agent skips that pipeline.
Tips and example
Keep tags as key:value pairs so they filter cleanly in dashboards, and set env once at the top so traces and metrics inherit it. A minimal log-and-trace config:
api_key: ${DD_API_KEY}
site: datadoghq.com
env: production
tags:
- team:platform
logs_enabled: true
apm_config:
enabled: true
receiver_port: 8126
Reload with datadog-agent reload or restart the service after editing, and confirm with datadog-agent status that each enabled check reports OK.