Datadog Observability for GitHub Copilot

AI-powered Datadog observability tools — Logs, Metrics, Monitors, Dashboards, APM, Incidents and more directly from GitHub Copilot Chat.
Features
65+ Datadog tools available directly in GitHub Copilot Chat via the Model Context Protocol (MCP).
- Search and filter logs with Datadog query syntax
- Aggregate logs for analytics
- Tail recent logs
- Discover log patterns
- List indexes and pipelines
- Query time-series metrics
- Search for metric names
- Get metric metadata
- List active metrics
- Get metric tags
- Query scalar data
- List, create, update, delete monitors
- Search monitors
- Mute/unmute monitors
- Get triggered monitors — best starting point for troubleshooting!
- List, create, update, delete dashboards
- Auto-generate observability dashboards for any service
- List, search, get, and post events
- List, create, update, search incidents
- Manage incident todos
- Search trace spans
- Aggregate trace data
- List services from Service Catalog
- Get service health summary (request rate, error rate, P50/P95/P99 latency)
- List and search hosts
- Get host totals
- Mute/unmute hosts
- List, get, create, delete SLOs
- Get SLO history and error budget
- List, get synthetic tests
- Get test results
- Trigger test runs
- Create API tests
- Search RUM events
- Aggregate RUM data
- List, search, get security signals from Cloud SIEM
- List, get, create, cancel scheduled downtimes
Quick Start
1. Install the Extension
Install from the VS Code Marketplace or search for "Datadog Observability" in VS Code Extensions.
- Open the Command Palette (
Cmd+Shift+P / Ctrl+Shift+P)
- Run "Datadog Observability: Configure Datadog Credentials"
- Enter your Datadog API Key and Application Key
- Select your Datadog site
Getting API Keys
- Go to your Datadog Organization Settings > API Keys
- Create a new API Key
- Go to Application Keys
- Create a new Application Key
3. Use with Copilot Chat
Open GitHub Copilot Chat and ask questions like:
- "Show me all triggered monitors"
- "Search error logs for the payments service in the last hour"
- "What's the CPU usage on prod hosts?"
- "Create an observability dashboard for the api-gateway service"
- "Get the P95 latency for the checkout service"
Configuration
| Setting |
Default |
Description |
datadogObservability.site |
datadoghq.com |
Your Datadog site |
datadogObservability.defaultTimeRange |
1h |
Default time range for queries |
datadogObservability.logLevel |
info |
Log level (error, warn, info, debug) |
datadogObservability.autoStart |
true |
Auto-start MCP server |
datadogObservability.maxResults |
50 |
Default maximum results |
Commands
| Command |
Description |
Datadog Observability: Configure Datadog Credentials |
Set up API keys |
Datadog Observability: Test Datadog Connection |
Verify connectivity |
Datadog Observability: Restart Datadog MCP Server |
Restart the server |
Datadog Observability: Open Datadog MCP Documentation |
Open docs |
Troubleshooting
Credentials Not Working
- Verify your API Key and Application Key are correct
- Ensure you've selected the correct Datadog site
- Check that your keys have the required permissions
Rate Limiting
The extension automatically retries on HTTP 429 (rate limit) with exponential backoff. If you're still hitting limits, reduce the frequency of queries.
MCP Server Not Starting
- Check the Output panel → "Datadog Observability" for errors
- Run "Restart Datadog MCP Server" command
- Verify Node.js 18+ is installed
- Ensure VS Code 1.85+ with MCP support is installed
- Check that the MCP server started successfully in Output panel
- Reload VS Code window
Supported Datadog Sites
| Site |
Region |
datadoghq.com |
US1 (default) |
us3.datadoghq.com |
US3 |
us5.datadoghq.com |
US5 |
datadoghq.eu |
EU |
ap1.datadoghq.com |
AP1 (Japan) |
ddog-gov.com |
US Government |
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
License
MIT — GleidsonFerSanP
| |