이 페이지는 아직 영어로 제공되지 않습니다. 현재 번역 작업을 진행 중입니다. 현재 번역 프로젝트에 대해 궁금한 점이나 의견이 있으시면 언제든지 문의하세요!
Move your pipeline from an upstream OpenTelemetry (OTel) Collector to the Agent’s Collector, the OpenTelemetry Collector that runs alongside the Datadog Agent as a separate process. The Agent’s Collector gives you Agent features, such as integrations and Live Containers, alongside your OpenTelemetry pipeline. To keep the Agent out of your pipeline, migrate to the DDOT Collector instead.
To migrate, set up the Agent’s Collector and configure your applications to send their telemetry to it.
If your configuration uses span_name_as_resource_name or span_name_remappings, review the New Operation Name Mappings guide. The Agent’s Collector enables these new mappings by default.
The default configuration settings in Datadog's embedded collector may differ from the standard OpenTelemetry Collector configuration defaults. This can affect behavior of components like the filelogreceiver. Review the configuration closely when migrating from the upstream Collector.
Example configuration
Here are two example Collector configuration files:
This example uses a custom metricstransform component:
Set <DATADOG_SITE> to your Datadog site. Otherwise, it defaults to datadoghq.com, the US1 site.
Enable the OpenTelemetry Collector and configure the essential ports:
datadog-values.yaml
datadog:...otelCollector:enabled:trueports:- containerPort:"4317"# default port for OpenTelemetry gRPC receiver.hostPort:"4317"name:otel-grpc- containerPort:"4318"# default port for OpenTelemetry HTTP receiverhostPort:"4318"name:otel-http
It is required to set the hostPort in order for the container port to be exposed to the external network. This enables configuring the OTLP exporter to point to the IP address of the node to which the Datadog Agent is assigned.
If you don’t want to expose the port, you can use the Agent service instead:
Remove the hostPort entries from your datadog-values.yaml file.
In your application’s deployment file (deployment.yaml), configure the OTLP exporter to use the Agent service:
Select an Agent and inspect its configuration to verify the new Agent with OpenTelemetry Collector is installed successfully.
Configure your application
To send telemetry from your existing application to the Datadog Agent instead of the upstream Collector, set the correct OTLP endpoint hostname. The Datadog Agent runs as a DaemonSet, so your application needs to target the current host.
Go to your application’s Deployment manifest file (deployment.yaml).
Add following environment variables to configure the OTLP endpoint:
If you previously used span_name_as_resource_name or span_name_remappings configurations in your upstream Collector, you need to adapt your configuration.
Remove these configurations from your Datadog Exporter and Connector settings.
Enable the enable_operation_and_resource_name_logic_v2 feature flag in your Agent configuration.
After configuring your application, verify that data is flowing correctly to Datadog:
Apply the configuration changes by redeploying your applications.
kubectl apply -f deployment.yaml
Confirm that telemetry data is being received in your Datadog account. Check logs, traces and metrics to ensure correct data collection and correlation.
Uninstall the upstream Collector
After you’ve confirmed that all data is being collected correctly in Datadog, you can remove the upstream OpenTelemetry Collector:
Ensure all required data is being collected and displayed in Datadog.
Uninstall the open source OpenTelemetry Collector from your environment: