Datadog
Connect your Datadog account to enable CloudThinker agents to search logs, query metrics, monitor infrastructure, and investigate incidents across your entire stack.Supported Platforms
| Platform | Support |
|---|---|
| Datadog | All plans (Free, Pro, Enterprise) |
| Datadog US1 | app.datadoghq.com |
| Datadog US3 | us3.datadoghq.com |
| Datadog US5 | us5.datadoghq.com |
| Datadog EU1 | app.datadoghq.eu |
| Datadog AP1 | ap1.datadoghq.com |
| Datadog AP2 | ap2.datadoghq.com |
Prerequisites
You need a Datadog API Key and an Application Key with appropriate scopes.Create an API Key
- Go to Organization Settings → API Keys in your Datadog account
- Click + New Key
- Name it (e.g.,
CloudThinker) and save - Copy the key value
Create a Scoped Application Key
- Go to Organization Settings → Application Keys
- Click + New Key
- Name it (e.g.,
CloudThinker) - Under Scopes, select the permissions listed in Required Permissions below
- Save and copy the key value
Setup
Select your Datadog Site
Choose the Datadog site that matches your account (e.g., US1 for
datadoghq.com, EU1 for datadoghq.eu).Required Permissions
When creating your Application Key, select these scopes to enable all CloudThinker tools:MCP
| Tool | What it does | Requires |
|---|---|---|
mcp_read | Read data via the MCP server. | Read scopes (see below) |
mcp_write | Write data via the MCP server. | notebooks_write + user approval |
Read Scopes (all read tools)
| Scope | Enables |
|---|---|
logs_read_data, logs_read_index_data | Search logs, analyze log patterns and trends |
metrics_read | Search metrics, query time-series data, retrieve metric metadata |
timeseries_query | Query metric time-series data |
monitors_read | Search monitors by status, name, or tag |
incidents_read | Search incidents, get full incident details |
dashboards_read | Search dashboard configurations |
hosts_read | List and inspect infrastructure hosts |
apm_read | Retrieve distributed traces, search APM spans |
apm_service_catalog_read | List services, map service dependencies |
events_read | Search platform and custom events |
notebooks_read | Search and retrieve investigation notebooks |
rum_apps_read | Search Real User Monitoring data |
Write Scopes (notebook creation and editing)
| Scope | Enables |
|---|---|
notebooks_write | Create and edit investigation notebooks |
The connection health check requires no additional scopes — it validates the connection itself.
Agent Capabilities
Once connected, agents can perform 19 read operations and 2 write operations across your Datadog environment:Read Capabilities
| Category | What the agent can do |
|---|---|
| Logs | Search logs across services and environments, analyze log patterns and trends |
| Metrics | Search available metrics, query time-series data, retrieve metric metadata and context |
| Monitors | Find monitors by status, name, or tag |
| Incidents | Search active and resolved incidents, get full incident details |
| Dashboards | Search and inspect dashboard configurations |
| Infrastructure | List and inspect hosts across your infrastructure |
| APM | Retrieve distributed traces, search spans for latency analysis |
| Service Catalog | List services and map service dependency relationships |
| Events | Search platform and custom events |
| Notebooks | Search and retrieve investigation notebooks |
| RUM | Search Real User Monitoring data |
| Connection Health | Validate that the Datadog MCP connection is working |
Write Capabilities
| Category | What the agent can do |
|---|---|
| Notebooks | Create new investigation notebooks, edit existing notebooks |
Example Prompts
Troubleshooting
Connection test fails with 403
Connection test fails with 403
- Verify your API Key is valid and not revoked
- Verify your Application Key has the required scopes
- Ensure the keys belong to the same Datadog organization
Missing data after connecting
Missing data after connecting
- Check that your Application Key scopes include the data type you are querying (e.g.,
logs_read_datafor logs) - Verify your Datadog retention settings — data may have been aged out
- Ensure the service or host is actively sending data to Datadog
Wrong Datadog site selected
Wrong Datadog site selected
- If queries return empty results, you may have selected the wrong site
- Check your Datadog URL:
app.datadoghq.com→ US1,us3.datadoghq.com→ US3,datadoghq.eu→ EU1, etc. - Disconnect and reconnect with the correct site
API Key vs Application Key
API Key vs Application Key
- API Key: Authenticates API requests to Datadog. Required for all connections.
- Application Key: Grants access to specific Datadog features and data. Must be scoped for least-privilege access.
- Both are required — one alone is not sufficient.
Security Best Practices
- Use scoped Application Keys — only grant the permissions CloudThinker needs
- Separate keys per integration — create dedicated API and Application Keys for CloudThinker
- Rotate regularly — periodically rotate both keys and update them in CloudThinker
- Revoke when unused — delete the keys in Datadog if you disconnect the integration
Related
Grafana Connection
Alternative metrics and dashboards
PagerDuty Connection
Incident alerting and on-call