For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/opentelemetry/setup/ddot_collector/install/windows.md.
A documentation index is available at /llms.txt.
A supported Windows version (Windows Server 2016+ or Windows 10+). See supported platforms for details.
Network:
When using the Datadog SDK with OpenTelemetry API support, telemetry is routed to different components depending on the signal source. Ensure the following ports are accessible on your Datadog Agent or Collector:
Signal Source
Protocol
Port
Destination Component
OTel Metrics and Logs API
OTLP (gRPC/HTTP)
4317 / 4318
Datadog Agent OTLP Receiver or DDOT Collector
Datadog Tracing
Datadog trace intake
8126 (TCP)
Datadog Trace Agent
Runtime Metrics
DogStatsD
8125 (UDP)
DogStatsD Server
Install the Datadog Agent with OpenTelemetry Collector
This installation is required for both Datadog SDK + DDOT and OpenTelemetry SDK + DDOT configurations. While the Datadog SDK implements the OpenTelemetry API, it still requires the DDOT Collector to process and forward OTLP metrics and logs.
Installation
To install the DDOT Collector on a Windows host, use the following MSI command:
$p=Start-Process-Wait-PassThrumsiexec-ArgumentList'/qn /i "https://windows-agent.datadoghq.com/datadog-agent-7-latest.amd64.msi" /log C:\Windows\SystemTemp\install-datadog.log APIKEY="<DATADOG_API_KEY>" SITE="" DD_OTELCOLLECTOR_ENABLED=true'if($p.ExitCode-ne0){Write-Host"msiexec failed with exit code $($p.ExitCode) please check the logs at C:\Windows\SystemTemp\install-datadog.log"-ForegroundColorRed}
This command installs both the core Datadog Agent package and the DDOT Collector that runs alongside it.
Note: For Agent v7.78+, if the Datadog Agent is already installed on the host, you can install the DDOT Collector separately. Run from an elevated PowerShell session:
A successful installation returns an Agent Status report that begins with Agent information like this:
====================
Agent (v7.x.x)
====================
Status date: 2025-08-22 18:35:17.449 UTC (1755887717449)
Agent start: 2025-08-22 18:16:27.004 UTC (1755886587004)
Pid: 2828211
Go Version: go1.24.6
Python Version: 3.12.11
Build arch: amd64
Agent flavor: agent
FIPS Mode: not available
Log Level: info
There will also be an OTel Agent status section that includes OpenTelemetry information:
The configuration file for the Datadog Agent is automatically installed at C:\ProgramData\Datadog\datadog.yaml. The installer adds the following configuration settings to C:\ProgramData\Datadog\datadog.yaml to enable the DDOT Collector:
DDOT automatically binds the OpenTelemetry Collector to ports 4317 (grpc) and 4318 (http) by default.
(Optional) Enable additional Datadog features
Enabling these features may incur additional charges. Review the pricing page and talk to your Customer Success Manager before proceeding.
For a complete list of available options, refer to the fully commented reference file at C:\ProgramData\Datadog\datadog.yaml.example or the sample config_template.yaml file.
When enabling additional Datadog features, always use the Datadog or OpenTelemetry Collector configuration files instead of relying on Datadog environment variables.
Configure the OpenTelemetry Collector
The installer provides a sample OpenTelemetry Collector configuration at C:\ProgramData\Datadog\otel-config.yaml that you can use as a starting point.
Sample otel-config.yaml file from installation
Sample otel-config.yaml from installation will look something like this:
Note: If key is not specified or set to a secret, or if site is not specified, the system uses values from the core Agent configuration. By default, the core Agent sets site to datadoghq.com (US1).
Prometheus receiver
The Prometheus receiver collects health metrics from the OpenTelemetry Collector for the metrics pipeline.
Example application instrumented with the OpenTelemetry API
As an example, you can use the Calendar sample application that’s already instrumented for you. The following code instruments the CalendarService.getDate() method using the OpenTelemetry annotations and API:
Your application must send data to the DDOT Collector on the same host. Ensure that the OTEL_EXPORTER_OTLP_ENDPOINT environment variable is set on your application.
If using the example application, run-otel-local.sh sets up the required environment variables and runs the application:
Note: You can run this script in Git Bash, which is included with Git for Windows.
Correlate observability data
Unified service tagging ties observability data together in Datadog so you can navigate across metrics, traces, and logs with consistent tags.
In bare-metal environments, env, service, and version are set through the OpenTelemetry Resource Attributes environment variables. The DDOT Collector detects this tagging configuration and applies it to the data it collects from applications.
In the example application, this is done in run-otel-local.sh:
Redeploy your application to apply the changes made in your environment variables. After the updated configuration is active, unified service tagging is fully enabled for your metrics, traces, and logs.
Explore observability data in Datadog
Use Datadog to explore the observability data for your application.
Fleet automation
Explore your Datadog Agent, DDOT, and upstream OpenTelemetry Collector configurations.
Infrastructure monitoring
View runtime and infrastructure metrics to visualize, monitor, and measure the performance of your hosts.
Logs
View logs to monitor and troubleshoot application and system operations.
Traces
View traces and spans to observe the status and performance of requests processed by your application, with infrastructure metrics correlated in the same trace.
Runtime metrics
Monitor your runtime (JVM) metrics for your applications.
Collector health metrics
View metrics from the DDOT Collector to monitor the Collector health.
Further reading
Additional helpful documentation, links, and articles: