Setting Up Datadog Slack, Microsoft Teams, and GitHub Integrations
Configure Datadog integrations with Slack, Microsoft Teams, and GitHub for alerts, incident management, and deployment tracking.
Datadog's power multiplies when it connects to the tools your team already uses. Slack, Microsoft Teams, and GitHub integrations turn monitoring data into actionable workflows where your team already works.
Slack Integration
Setup Steps
-
Install the Datadog Slack App
- Go to Integrations > Slack in Datadog
- Click "Add Slack Integration"
- Authorize Datadog in your Slack workspace
-
Configure Alert Destinations
- Create a dedicated channel (e.g.,
#datadog-alerts) - Map different alert severities to different channels
- Configure @mentions for on-call rotations
- Create a dedicated channel (e.g.,
-
Set Up Alert Routing
# Example: Route critical alerts to #incidents
# Route warnings to #monitoring
Alert Severity → Channel Mapping:
- P1/Critical → #incidents + @oncall
- P2/Warning → #monitoring
- P3/Info → #monitoring-logs
Slack Notification Customization
Customize alert messages with template variables:
{{host.name}}— the affected host{{alert.title}}— the alert name{{alert.type}}— metric, log, or APM alert{{alert.priority}}— P1, P2, P3
Interactive Slack Features
Datadog's Slack integration supports interactive actions:
- Acknowledge alerts directly from Slack
- Mute monitors without leaving Slack
- View alert details with expandable messages
- Create incidents from alerts
Microsoft Teams Integration
Setup Steps
-
Add Datadog Connector in Teams
- Open Microsoft Teams
- Go to the channel where you want alerts
- Click "Connectors" or "Workflows"
- Search for "Datadog" and install
-
Configure in Datadog
- Go to Integrations > Microsoft Teams
- Paste the webhook URL from Teams
- Test the connection
-
Map Alert Destinations
Configure which alerts go to which Teams channels:
- Infrastructure alerts → Ops channel
- Application alerts → Dev channel
- Security alerts → Security channel
Teams Notification Format
Datadog sends rich cards to Teams including:
- Alert title and description
- Affected host or service
- Current metric value
- Link to Datadog dashboard
- Action buttons (acknowledge, mute)
GitHub Integration
Setup Steps
-
Connect Datadog to GitHub
- Go to Integrations > GitHub
- Click "Install Integration"
- Authorize Datadog to access your repos
-
Configure Repositories
- Select which repos to monitor
- Choose which events to track
- Map repos to services in Datadog
GitHub Integration Features
Deployment Tracking
- Automatic deployment detection from GitHub Actions
- Correlate deployments with performance changes
- Track deploy frequency and success rate
PR Integration
- See performance impact of PRs
- Link APM data to code changes
- Track regression introduced by specific commits
Incident Linking
- Link GitHub issues to Datadog incidents
- Auto-create GitHub issues from Datadog alerts
- Track incident resolution in both systems
GitHub Actions Integration
Send deployment events to Datadog from GitHub Actions:
# .github/workflows/deploy.yml
- name: Send deployment event to Datadog
uses: DataDog/datadog-ci@v2
with:
sites: us1
api-key: ${{ secrets.DD_API_KEY }}
level: application
service: my-service
env: production
start: ${{ env.DEPLOY_START }}
end: ${{ env.DEPLOY_END }}
dry-run: false
Combining Integrations
The real power comes from using all three together:
- Code push → GitHub integration detects deployment
- Deployment tracking → Datadog monitors the deploy
- Alert triggers → Slack/Teams notified of issues
- Incident created → Linked to GitHub issue
- Resolution → Auto-closes GitHub issue
Best Practices
Create dedicated channels. Don't mix monitoring alerts with general chat. Separate channels for different teams and severities.
Use @mentions wisely. Only @mention on-call for P1 alerts. False positives with @mentions destroy trust.
Keep integrations updated. Review integration configurations quarterly. Remove unused connections.
Test regularly. Send test alerts monthly to verify integrations work. Don't wait for a real incident to discover a broken integration.
Troubleshooting
Alerts not appearing in Slack/Teams:
- Verify webhook URL is correct
- Check channel permissions
- Test with a manual alert
GitHub events not detected:
- Verify repository access
- Check webhook configuration
- Review Datadog integration logs
Duplicate alerts:
- Check for multiple alert configurations
- Review notification rules
- Deduplicate using alert templates
Getting Started
- Start with Slack integration for immediate visibility
- Add Teams if your organization uses Microsoft
- Connect GitHub for deployment tracking
- Configure alert routing rules
- Test with simulated alerts before going live