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
1
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
2
Create Application Key
- In Organization Settings, go to Application Keys
- Click + New Key
- Name it
Auroraand copy the generated key
3
Identify Your Site
Determine which Datadog site you’re using:
4
Connect to Aurora
- In Aurora, navigate to Integrations > Datadog
- Enter your API Key, Application Key, and site
- Click Connect
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:1
Get Webhook URL
In Aurora’s Datadog integration page, copy your unique webhook URL:
2
Configure Webhook in Datadog
- In Datadog, go to Integrations > Webhooks
- Click + New
- Name it
aurora - Paste your Aurora webhook URL
- Save the webhook
3
Add to Monitors
In any Datadog monitor notification, add
@webhook-aurora to automatically send alerts to Aurora.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
For detailed information, see the Datadog API documentation.