feat(cookbooks): add Otel Collector integration#71076
feat(cookbooks): add Otel Collector integration#71076stephenliang wants to merge 5 commits intostagingfrom
Conversation
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
|
Is there a Chef Attribute that we set in the Chef Infra service to toggle whether or not we send data to DataDog? Or is that just the presence of the Data Dog API in Secrets Manager? |
Added in an attribute to enable/disable the service and skip the install if not enabled. Disabled by default |
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.