이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다. 현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우 언제든지 연락주시기 바랍니다.
This guide explains how to build a Datadog Agent image with OpenTelemetry components that the Agent’s Collector doesn’t include by default. To see the components it includes, see Included components.
Open the manifest.yaml file and add the additional OpenTelemetry components to the corresponding sections (extensions, exporters, processors, receivers, or connectors).
The highlighted line in this example adds a metrics transform processor:
The custom Agent image you build needs to be stored in your organization’s private container registry for your clusters to access it. Additionally, this build process must be repeated each time you update the Agent version to maintain compatibility with new Agent releases.
Build your custom Datadog Agent image and push it to a container registry.
Tag and push the image. The image tag must match the Datadog Agent version your image is built from:
docker tag agent-ddot datadog/agent:$DD_AGENT_VERSIONdocker push datadog/agent:$DD_AGENT_VERSION
Ensure your custom image name is datadog/agent to guarantee that all platform features work correctly. If the target repository is not Docker Hub, you need to include the repository name:
Replace <YOUR-REPO> with your repository name, and set tag to the Agent version your custom image is built from.
The Datadog Helm chart reads agents.image.tag as an Agent version and uses it to enable or disable version-dependent behavior. A tag that is not a valid Agent version, such as byoc-0.0.2, causes the chart to fail or to misconfigure the Agent. Setting doNotCheckTag: true only skips the chart's minimum-version check; it does not exempt the tag from being parsed as a version.
To distinguish between builds of the same Agent version, append a SemVer prerelease identifier to the version, such as 7.83.1-byoc.1.
Test and validate
Create a sample configuration file and run your custom Agent image to make sure everything is working correctly.
Create a sample OpenTelemetry configuration file with the additional components.
The following example configures an additional metrics transform processor:
If the Agent’s Collector starts, then the build process was successful.
You can now use this new image to install the Agent’s Collector. This enables Datadog monitoring capabilities along with the additional OpenTelemetry components you’ve added.
For detailed instructions on installing and configuring the Agent’s Collector with added OpenTelemetry components, see the Set Up the Agent’s Collector guide.
Troubleshooting
This section discusses some common issues you might encounter while building and running your custom Collector, along with their solutions:
Compatibility issues with awscontainerinsightreceiver
Problem: You may encounter errors related to awscontainerinsightreceiver during the build:
Solution: Remove awscontainerinsightreceiver from the manifest.yaml file. This receiver has incompatible libraries and cannot be included in the build.
Build process failures
Problem: You receive the following error:
ERROR: failed to solve: process "/bin/sh -c . venv/bin/activate && invoke otel-agent.build" did not complete successfully: chown /var/lib/docker/overlay2/r75bx8o94uz6t7yr3ae6gop0b/work/work: no such file or directory
Solution: Run the build command again:
docker build . -t agent-otel --no-cache
Insufficient disk space
Problem: You may encounter errors related to insufficient disk space, such as: