feat(cookbooks): add Otel Collector integration#71076
Open
stephenliang wants to merge 3 commits intostagingfrom
Open
feat(cookbooks): add Otel Collector integration#71076stephenliang wants to merge 3 commits intostagingfrom
stephenliang wants to merge 3 commits intostagingfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces the cdo-otel-collector cookbook, which installs and configures the DataDog OpenTelemetry Collector (DDOT) as part of Code.org's infrastructure. It enables receiving OTLP telemetry data (traces, metrics, logs) from OpenTelemetry-instrumented applications and forwarding it to DataDog.
Changes:
- New
cdo-otel-collectorcookbook with recipe, templates, attributes, and kitchen config to install and configure the DDOT agent - Updated
cdo-appscookbook to depend on and includecdo-otel-collectorin the default run - Updated
Berksfile.lockto include the new cookbook dependency
Reviewed changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
cookbooks/cdo-otel-collector/recipes/default.rb |
Core recipe: installs DataDog agent, writes config, manages service, runs verification |
cookbooks/cdo-otel-collector/templates/datadog.yaml.erb |
Main DataDog agent config template with API key, OTel, APM, and log settings |
cookbooks/cdo-otel-collector/templates/otel-config.yaml.erb |
OTel Collector pipeline config with receivers, processors, connectors, and exporters |
cookbooks/cdo-otel-collector/attributes/default.rb |
Default site attribute pointing to datadoghq.com |
cookbooks/cdo-otel-collector/metadata.rb |
Cookbook metadata with apt dependency |
cookbooks/cdo-otel-collector/README.md |
Documentation covering setup, usage, and troubleshooting |
cookbooks/cdo-otel-collector/Berksfile |
Berkshelf config pointing to Chef Supermarket |
cookbooks/cdo-otel-collector/.kitchen.yml |
Test Kitchen config using Dokken/InSpec, but no test specs exist |
cookbooks/cdo-apps/recipes/default.rb |
Includes cdo-otel-collector in the app server run list |
cookbooks/cdo-apps/metadata.rb |
Adds cdo-otel-collector as a cdo-apps dependency |
cookbooks/Berksfile.lock |
Lock file updated with the new cookbook and its apt dependency |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This commit introduces the integration of the DataDog OpenTelemetry Collector (DDOT) into the Code.org infrastructure. The changes include the addition of a new cookbook and updates to existing configurations to support telemetry data collection and forwarding. - Introduced the `cdo-otel-collector` cookbook to install and configure the DataDog OpenTelemetry Collector (DDOT). - Updated `cdo-apps` to include `cdo-otel-collector` as a dependency. - Added default attributes for the OpenTelemetry Collector, including the DataDog site configuration. - Created templates for `datadog.yaml` and `otel-config.yaml` to enable OpenTelemetry and configure pipelines for traces, metrics, and logs. - Managed the `datadog-agent` service to ensure proper installation, configuration, and startup.
b64e19d to
c06343f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces the integration of the DataDog OpenTelemetry Collector (DDOT) into the Code.org infrastructure. The changes include the addition of a new cookbook and updates to existing configurations to support telemetry data collection and forwarding.
cdo-otel-collectorcookbook to install and configure the DataDog OpenTelemetry Collector (DDOT).cdo-appsto includecdo-otel-collectoras a dependency.datadog.yamlandotel-config.yamlto enable OpenTelemetry and configure pipelines for traces, metrics, and logs.datadog-agentservice to ensure proper installation, configuration, and startup.