Quick Guide for Datadog Agent on Host Platforms for Traces
This guide provides step-by-step instructions for installing and configuring the Datadog Agent on host platforms to collect and send trace data to Kloudfuse. It covers the initial setup, configuration options, and verification steps needed to begin monitoring application traces from your infrastructure. Use this guide if you are deploying the Datadog Agent directly on hosts rather than in containerized environments.
Install Datadog Agent
Run the following command on the host instance. It starts collecting and reporting metrics on CPU, memory, network, and uptime for the host instance.
Replace the placeholder <dns> with the correct endpoint name.
DD_UPGRADE=true \
DD_API_KEY=kloudfuse \
DD_URL="https://<KFUSE-DNS>/ingester" \
bash -c "$(curl -L https://s3.amazonaws.com/dd-agent/scripts/install_script_agent7.sh)"
Collect Traces
To collect traces from containerized applications, configure the Datadog Agent to interact with OpenTracing or OpenTelemetry instrumented applications.
-
Open the
datadog.yamlfile and set theapm_configtotrue:apm_config: enabled: trueyaml -
For each container, instrument your applications with Datadog’s APM (Application Performance Monitoring).
Simply add the Datadog APM libraries to your application —
dd-tracefor Python,ddtracefor Java, and so on. -
Enable the Datadog APM agent by passing environment variables:
-e DD_AGENT_HOST=<DATADOG_AGENT_HOST> -e DD_TRACE_ENABLED=true -e DD_ENV=<YOUR_ENV_NAME> # e.g., "production" -e DD_SERVICE=<YOUR_SERVICE_NAME> # e.g., "web-app" -e DD_VERSION=<YOUR_SERVICE_VERSION>text