Authentication
Datadog uses API Key + Application Key authentication.Prerequisites
- A Datadog account (US1, US3, US5, EU, AP1, AP2, or Gov)
- Organization admin access to create API keys
Setup Steps
Create API Key
- Go to Datadog and click your avatar
- Navigate to Organization Settings > API Keys
- Click + New Key
- Name it
Auroraand copy the generated key
Create Application Key
- In Organization Settings, go to Application Keys
- Click + New Key
- Name it
Auroraand copy the generated key
Identify Your Site
Determine which Datadog site you’re using:
| Site | URL |
|---|---|
| US1 | datadoghq.com |
| US3 | us3.datadoghq.com |
| US5 | us5.datadoghq.com |
| EU | datadoghq.eu |
| AP1 | ap1.datadoghq.com |
| AP2 | ap2.datadoghq.com |
| Gov | ddog-gov.com |
Configuration
No environment variables are required. API keys are entered through the Aurora UI and stored securely in Vault.Webhook Setup (Optional)
To receive real-time alerts from Datadog monitors:Configure Webhook in Datadog
- In Datadog, go to Integrations > Webhooks
- Click + New
- Name it
aurora - Paste your Aurora webhook URL
- Save the webhook
Development with ngrok
For local development, webhooks cannot reachlocalhost:5080 directly. Set up port forwarding:
.env
What Aurora Can Query
Once connected, Aurora can:Logs
- Search logs with Datadog query syntax
- Filter by time range, sources, tags
- Access structured log attributes
- Retrieve up to 500 logs per query
POST /datadog/logs/search
Example Query:
Metrics
- Query timeseries metrics
- Aggregate by tags and dimensions
- Define custom time ranges and intervals
- Use Datadog metric query language
POST /datadog/metrics/query
Example Query:
Events
- List Datadog events by time range
- Filter by priority, sources, tags
- Access event metadata and context
GET /datadog/events
Parameters:
start- Unix timestamp (default: 1 hour ago)end- Unix timestamp (default: now)priority- Filter by priority levelsources- Comma-separated source namestags- Comma-separated tags
Monitors
- List all monitors with pagination
- Filter by name, tags, status
- View monitor state and downtime info
- Access group states
GET /datadog/monitors
Parameters:
page- Page number (default: 0)page_size- Results per page (max: 100)name- Filter by monitor nametags- Filter by monitor tagsstatus- Filter by status (Alert, Warn, OK, etc.)group_states- Filter by group state (default: all)with_downtimes- Include downtime info (default: true)
Webhook Events
- Receive real-time monitor alerts
- Auto-create incidents from triggers
- Correlate related alerts
- Generate AI-powered root cause analysis
- Event type and title
- Monitor status (alert, warn, resolved)
- Scope and tags
- Metrics and queries
- Snapshots and links
Troubleshooting
Connection Failed- Verify API Key and Application Key are correct
- Ensure keys have not been revoked
- Check that you selected the correct site/region
- Verify
NGROK_URLis set correctly (for local development) - Ensure ngrok tunnel is running
- Check webhook is configured in Datadog with correct URL
- Send a test notification from Datadog webhook settings
- Datadog API rate limits apply per organization
- Reduce query frequency or use longer time windows
- Check Datadog API usage in your account settings
API Reference
Base Path:/datadog
| Method | Endpoint | Description |
|---|---|---|
| POST | /connect | Connect Datadog account |
| GET | /status | Check connection status |
| DELETE | /disconnect | Remove Datadog connection |
| POST | /logs/search | Search logs |
| POST | /metrics/query | Query metrics |
| GET | /events | List events |
| GET | /monitors | List monitors |
| GET | /events/ingested | View webhook events |
| POST | /webhook/{user_id} | Receive webhooks |
| GET | /webhook-url | Get webhook URL |