A Datadog OTel migration is safest when you do not start by ripping out agents or rewriting instrumentation. Start with overlap: keep Datadog as the source of truth, dual-ship telemetry, put the OpenTelemetry Collector in the path, compare dashboards and alerts, then cut over only what has passed validation.
To migrate from Datadog to OpenTelemetry without downtime, dual-ship Datadog Agent metrics and traces first, add the Collector as the control point, map service names and labels to OpenTelemetry conventions, validate dashboards and alerts against production incidents, and retire the Datadog Agent last. Do not re-instrument every service before you know the second path works.
This is a migration playbook, not a Datadog-versus-OpenTelemetry comparison. If you are still deciding between the two models, read our OpenTelemetry vs Datadog comparison first. If you are already making the move, use the phases below.
What a Datadog OTel migration means
A migration from Datadog to OpenTelemetry has four separate layers:
| Layer | What changes | What should not change during the first overlap |
|---|---|---|
| Instrumentation | Agent, SDK, or auto-instrumentation strategy | The application release path |
| Collection | Agent endpoints, Collector receivers, processors and exporters | The old Datadog intake path |
| Data model | Service names, attributes, metric names, units and tags | Incident-critical labels |
| Operations | Dashboards, alerts, ownership and runbooks | On-call expectations |
Treating those layers as one big cutover is how migrations stall. The Datadog Agent might still be the right collection point for the first phase. OpenTelemetry might enter as a Collector gateway before it replaces any application-side instrumentation. Dashboards might move before long-tail monitors. Alerts should move only after they have matched the old path for a full validation window.
For day one, aim for portable telemetry, an explicit mapping, and a rollback path for every service. “OpenTelemetry everywhere” comes later.
Phase 0: inventory what you run today
Before any config changes, collect the parts of Datadog that production depends on. A short inventory keeps the migration from becoming a treasure hunt during cutover.
Start with the agent and integration footprint:
- Host and Kubernetes Agent versions
datadog.yaml, environment variables and Helm values- APM settings and trace sampling rules
- Enabled integrations and custom checks
- Log pipelines, if logs are part of a later migration
- Any Datadog-specific SDK calls in application code
Then inventory the operational surface:
- Dashboards opened in the last 90 days
- Monitors that paged someone in the last 90 days
- SLOs, notification routes and escalation policies
- Saved views, notebooks and queries with Datadog-specific syntax
- Teams and service owners for each dashboard and monitor
Do not migrate every dashboard because it exists. Migrate what people use during incidents, deployments and reviews. The stale dashboard you copy will still be stale in the new backend, and someone will own it forever.
Choose the label standards before you dual-ship. At minimum, agree on:
| Concept | OpenTelemetry attribute to prefer | Migration note |
|---|---|---|
| Service name | service.name | Make this the dashboard and alert join key. |
| Environment | deployment.environment.name | Keep the old environment value stable during overlap. |
| Service version | service.version | Useful for deploy correlation and rollback checks. |
| Host name | host.name | Keep host-level dashboards from splitting unexpectedly. |
| Kubernetes namespace | k8s.namespace.name | Required for workload-level dashboard variables. |
| Kubernetes pod | k8s.pod.name | Useful for debugging, noisy if used as an alert grouping key. |
OpenTelemetry semantic conventions change over time, so link the mapping document to the version you validated. The OpenTelemetry semantic conventions are the reference for attributes that already have a standard name. For Datadog integration metrics without a direct OpenTelemetry convention, keep the category in the migration plan and map the exact metric names only after you verify them against your own data.
Phase 1: dual-ship through the Datadog Agent
The lowest-risk first move is to keep the Datadog Agent in place and add a second destination. Your applications keep running. Datadog keeps receiving data. The second backend gets the same path for comparison.
Our Datadog Agent integration docs show the Last9 setup for this phase. It adds Last9 under the Agent’s additional_endpoints for metrics and apm_config.additional_endpoints for traces.
The shape looks like this:
api_key: <DD_API_KEY>
# Metricsadditional_endpoints: "https://{$last9_username}:{$last9_password}@{$last9_otlp_endpoint}/datadog": - "<random_key>"
# Tracesapm_config: enabled: true additional_endpoints: "https://{$last9_username}:{$last9_password}@{$last9_otlp_endpoint}": - <random_key>That Last9 doc covers metrics and traces. Do not assume logs are covered by the same Last9 Agent dual-shipping instructions unless you have a separate log path configured and tested.
Keep Datadog as the source of truth during this phase, and use the overlap to answer these checks with production data:
- Does the second path receive every expected service?
- Do trace counts and metric volume move in the same direction as Datadog?
- Are
service,env, host and Kubernetes labels present under their target names? - Do high-cardinality labels arrive where you need them, or do they need filtering?
- Which integrations or custom checks have no clean equivalent yet?
Set a short overlap window for this first validation. Long enough to include a normal deploy and at least one on-call handoff; short enough that double-running vendors does not become the new normal. Our broader observability platform migration guide covers the TCO worksheet and parallel-run plan if you need the business case before this work starts.
Phase 2: introduce the OpenTelemetry Collector
Once the second path receives data, add the OpenTelemetry Collector as the routing and processing layer. The Collector gives you a vendor-neutral place to receive telemetry, batch it, add resource attributes, drop noise and export to one or more backends.
A Collector config has receivers, processors, exporters and service pipelines. The official Collector configuration docs are the primary reference, and our OpenTelemetry Collector docs show a Last9 exporter setup.
A minimal OTLP dual-export pattern looks like this:
receivers: otlp: protocols: grpc: endpoint: 0.0.0.0:4317 http: endpoint: 0.0.0.0:4318
processors: memory_limiter: check_interval: 1s limit_percentage: 80 spike_limit_percentage: 25 batch: {}
exporters: otlphttp/last9: endpoint: ${env:LAST9_OTLP_ENDPOINT} headers: Authorization: ${env:LAST9_AUTH_HEADER} otlphttp/other: endpoint: ${env:OTHER_OTLP_ENDPOINT}
service: pipelines: traces: receivers: [otlp] processors: [memory_limiter, batch] exporters: [otlphttp/last9, otlphttp/other] metrics: receivers: [otlp] processors: [memory_limiter, batch] exporters: [otlphttp/last9, otlphttp/other]Keep credentials and endpoints outside application code. Put them in Collector environment variables, Kubernetes secrets or your deployment system. This is one of the main reasons to add the Collector before you rewrite instrumentation: backend changes become pipeline changes, not application releases.
The Collector also has a Datadog receiver in the contrib distribution. The receiver supports Datadog APM traces, metrics and logs, and its OpenTelemetry Collector Contrib status is alpha for traces, metrics and logs. That makes it useful as a migration option when existing agents can point at a Collector first, but you should treat it as an alpha component: test it in staging, pin the Collector version, and watch receiver-specific issues before production cutover.
Add processors only after the raw path works. Good first processors are:
memory_limiterto reduce the chance of Collector OOMs under spikesbatchto reduce exporter overheadtransformto set missing service and environment attributesfilteronly after you know which telemetry is safe to drop
Our Collector processors and transforms docs cover filter, transform, memory limiter and batch examples. Avoid clever filtering during the first overlap. A migration is already changing enough variables.
Phase 3: map Datadog names to OpenTelemetry semantics
Teams often underestimate mapping work. A backend can receive the data and still fail the migration because every dashboard variable changed shape.
Build a mapping table for identity first:
| Current concept | Target convention | Validation check |
|---|---|---|
| Service | service.name | Service list matches the old top services. |
| Environment | deployment.environment.name | Prod, staging and dev filters return expected data. |
| Version | service.version | Deploy windows correlate with trace changes. |
| Host | host.name | Host dashboards keep the same grouping. |
| Kubernetes namespace | k8s.namespace.name | Namespace filters match cluster ownership. |
| Kubernetes pod | k8s.pod.name | Pod drill-down works without becoming an alert dimension. |
Then map metric and trace categories:
- Runtime metrics: JVM, .NET, Node.js, Python and Go runtime signals
- Host metrics: CPU, memory, disk, network and process-level health
- Kubernetes metrics: node, pod, deployment and container health
- APM metrics: request count, error count, latency, throughput and service dependencies
- Integration metrics: databases, queues, caches, load balancers and cloud services
Do not publish a metric-name mapping you have not validated. Runtime and integration metrics vary by Agent config, integration version and backend translation. In the migration plan, write the category and the dashboard or alert it serves. In the implementation checklist, link the exact query you tested.
A useful rule: preserve before you prune. Keep high-value tags through the first comparison window, even if you plan to reduce cardinality later. If customer_id, tenant, region, availability_zone, k8s.namespace.name or service.version helped in a past incident, keep it until an owner agrees it can move to logs or traces.
Phase 4: validate dashboards, alerts and incident workflows
Validation is more than checking that data arrives. You need to prove that on-call can use the new path under pressure.
Pick a small but serious validation set:
- The ten most-used dashboards.
- The ten monitors that paged most often or mattered most.
- One recent latency incident.
- One recent error-rate incident.
- One deploy rollback or saturation event.
For each dashboard, compare the old and new views over the same time window. You are looking for shape and usefulness, not pixel-perfect parity. A latency panel might use a different query language or histogram representation in the new backend, but it should answer the same operational question.
For each alert, record:
- Old query and new query
- Threshold, window and grouping keys
- Notification route
- Expected owner
- Whether it fired during the comparison window
- Whether it would have paged the same team
Cut over alerts before dashboards. Dashboards help humans investigate; alerts decide who wakes up. Move alert routing only after the new alert has matched the old one for the agreed window, or after the owning team signs off on a deliberate change.
Replay real incidents when possible. Take the timestamps from an incident review and ask the new backend the same questions the on-call asked then: what changed, which service was hit, which dependency slowed down, which deploy was active, and which customer path was affected. If the new workflow cannot answer those questions, keep the old path.
Phase 5: retire the Datadog Agent safely
Retire the Datadog Agent last, and do it service by service. The agent might still be doing more than you remember. It can provide infrastructure metrics, APM traces, integrations, custom checks, DogStatsD metrics or logs. Removing it globally because traces look good is a common way to lose host and integration coverage.
Use exit criteria like these:
- The service emits telemetry through OpenTelemetry or a Collector path.
- Metrics and traces arrive in the new backend for a full release window.
- Dashboards owned by the service team pass review.
- Alerts route to the right team from the new backend.
- Rollback steps are documented and tested in staging.
- The owner has signed off on any missing custom checks or integrations.
Keep rollback simple. Store the last working Agent config, Helm values, Collector config and environment variables. If you remove a DaemonSet, keep the manifest. If you remove an application-side library, keep the revert commit small. A migration is done when rollback is boring.
Where Last9 fits in a Datadog migration
Last9 fits when the goal is to keep the migration incremental: dual-ship first, compare with production data, then cut over without forcing a full re-instrumentation project up front.
Last9 ingests OpenTelemetry, Prometheus and dual-shipped Datadog Agent data. The Last9 vs Datadog comparison says Datadog dashboards and monitors import in one click, while saved views, notebooks and Datadog-specific queries need rework. Use that caveat in the plan. A one-click import does not mean every query or workflow is finished.
The Control Plane drops, remaps, redacts, forwards and aggregates telemetry at ingest, before storage, and previews every rule against live data before you save it. That gives you a safer place to reshape noisy telemetry after the first validation window.
For high-cardinality metrics, Last9 has no hard limit; 20M series per metric per day by default, raised on request. For the migration itself, do not remove labels you need for incident response just because the old billing model made them expensive.
Migration checklist
Use this as the runbook for the project.
Before dual-shipping
- Name the migration owner and service owners.
- Export Agent configs, Helm values and environment variables.
- List Datadog integrations, custom checks and SDK usage.
- Pick the dashboards and monitors in scope.
- Agree on service, environment, host and Kubernetes labels.
- Define the first validation window and exit criteria.
During dual-shipping
- Keep Datadog as the source of truth.
- Verify that metrics and traces arrive in the second backend.
- Compare service counts, volume trends and label shape.
- Record missing integrations or custom checks.
- Avoid filtering until the raw path is understood.
While adding the Collector
- Start with OTLP receivers,
memory_limiterandbatch. - Keep credentials in the Collector, not in application code.
- Add a second exporter for parallel validation.
- Add transforms for missing resource attributes only after the base path works.
- Treat the Collector Contrib Datadog receiver as alpha if you use it.
Before cutover
- Review the top dashboards with owners.
- Match or intentionally rewrite high-value monitors.
- Replay at least one real incident.
- Move alert routing before dashboards.
- Document rollback for each service.
Before retiring the Datadog Agent
- Confirm the Agent is not the only source for host or integration metrics.
- Remove it from one service or node pool first.
- Watch one release window.
- Keep the last working config.
- Remove remaining agents only after owners sign off.
Where to start
Start with one production service that is important enough to prove the path but small enough to roll back quickly. Dual-ship metrics and traces from the existing Datadog Agent, compare it for one deploy cycle, then add the Collector in front of the new path. That gives you evidence before you ask every service team to change instrumentation.
If you are making the business case, use the observability migration guide to model overlap and effort. If you are deciding whether Last9 is the right destination, use Last9 vs Datadog for the import scope, caveats and fit.
FAQ
How do I migrate from Datadog to OpenTelemetry without downtime?
Dual-ship first. Keep Datadog running, send the same metrics and traces to a second backend, introduce the OpenTelemetry Collector as the routing layer, map names and labels, validate dashboards and alerts, then retire the Datadog Agent only after your exit criteria pass.
Can I run Datadog and OpenTelemetry at the same time?
Yes. You can run them in parallel during a migration. The Datadog Agent can dual-ship metrics and traces, and the OpenTelemetry Collector can export the same pipeline to multiple destinations. Keep the old tool as the source of truth until validation passes.
Do I need to replace the Datadog Agent before I use OpenTelemetry?
No. Start by dual-shipping from the existing Datadog Agent. Replace application instrumentation and agent placement later, after you have proven that the new pipeline preserves the telemetry, labels, dashboards and alerts your teams use.
What should I map when moving Datadog metrics to OpenTelemetry?
Map service identity, environment, host, Kubernetes attributes, deployment ownership, metric units, dashboard variables and alert queries. Use OpenTelemetry semantic conventions where they exist, and treat vendor-specific runtime and integration metrics as a reviewed mapping table rather than a blind rename.
When is it safe to retire the Datadog Agent?
Retire it service by service after the new pipeline has matching telemetry volume, the top dashboards work, alert routing has moved, at least one real or replayed incident has been resolved from the new backend, and rollback steps are documented for the next release window.
