Datadog Duplicate Hosts After AWS Integration
Quick answer
The same server shows twice when the Agent and the cloud integration report different names. Set an explicit hostname in the Agent; the duplicate disappears about two hours later.
Most likely fix: Set explicit hostname
How to fix it
Try these in order — the most common fix is first.
1. Set explicit hostname
- Set hostname in datadog.yaml to match the cloud instance ID or name
- Restart the Agent and wait up to two hours
Did this fix it?2. Find duplicates
- Infrastructure > Infrastructure List
- Filter by the Agent app field or search the hostname
Did this fix it?3. Align OpenTelemetry hostnames
- Use the same host attribute in OTLP exports and the Agent
Did this fix it?
Symptoms
Two entries for one host in Infrastructure List, inflated host count and bill.
Why it happens
- Agent and AWS EC2 integration failing to map to the same host
- Hostname differs between OTLP and Agent
This guide also covers
- datadog duplicate hosts
- datadog duplicate host names aws
Still not working?
If Datadog keeps failing, you're not alone. See every Datadog problem users report or the alternatives people switch to.
We build software. Any software.
Paying for apps that don't quite fit? We build exactly what you need.
We're a small team of developers who build custom software fast. Not just tools like Datadog: web and mobile apps, games, desktop software, AI tools, internal tools: whatever you have in mind. We build and run our own products too: booking platforms, games, learning apps. See our work
- Web apps & SaaS
- Mobile apps (iOS & Android)
- Games
- Desktop software
- AI tools & automations
- Internal tools & dashboards
- Client portals & booking
- Your own version of any tool
- ✓ Free 15-min call to scope it
- ✓ Price agreed up front
- ✓ Your data, your code
Other Datadog errors
- How to Cancel Datadog Subscription
- Datadog Agent Not Reporting Metrics or Host Missing
- Datadog Logs Not Showing in Log Explorer
- Datadog APM Traces Not Showing Up
- Datadog Agent High CPU or Memory Usage
- Datadog Monitor No Data Alerts Not Working
- Why Is My Datadog Bill So High: Custom Metrics
- Datadog Agent 403 API Key Invalid in Kubernetes