Skip to main content
Connect your Datadog account to enable CloudThinker agents to search logs, query metrics, monitor infrastructure, and investigate incidents across your entire stack. Datadog authenticates with an API key and a scoped Application key pair.

Supported platforms

SiteURL
US1app.datadoghq.com
US3us3.datadoghq.com
US5us5.datadoghq.com
EU1app.datadoghq.eu
AP1ap1.datadoghq.com
AP2ap2.datadoghq.com
GovCloud (US1-FED) is not supported by the Datadog MCP server.

Prerequisites

You need a Datadog API key and a scoped Application key. Create an API key:
  1. Go to Organization Settings → API Keys in your Datadog account.
  2. Click + New Key, name it (e.g., CloudThinker), and save.
  3. Copy the key value.
Create a scoped Application key:
  1. Go to Organization Settings → Application Keys.
  2. Click + New Key, name it (e.g., CloudThinker).
  3. Under Scopes, select the permissions listed in Required permissions.
  4. Save and copy the key value.
Always use scoped Application keys instead of unscoped ones. An unscoped key inherits all permissions from the user who created it.

Setup

1

Open CloudThinker

Navigate to Connections → Datadog in your CloudThinker workspace.
2

Select your Datadog site

Choose the Datadog site that matches your account (e.g., US1 for datadoghq.com, EU1 for datadoghq.eu).
3

Enter your API key

Paste your Datadog API key.
4

Enter your Application key

Paste your Datadog Application key.
5

Connect

Click Connect. CloudThinker verifies the credentials and shows a Connected status.

Connection details

FieldDescriptionExample
SiteDatadog site matching your accountUS1 (datadoghq.com)
API KeyDatadog API key
Application KeyDatadog Application key with explicit scopes

Required permissions

Select these scopes when creating your Application key. Read scopes cover all investigation tools; notebooks_write is optional and enables notebook creation.
ScopeWhat it enables
logs_read_data, logs_read_index_dataSearch and analyze logs
metrics_read, timeseries_queryQuery metrics and time-series data
monitors_readSearch monitors by status and tag
incidents_readSearch incidents and get details
dashboards_readInspect dashboard configurations
hosts_readList and inspect infrastructure hosts
apm_readRetrieve traces and search APM spans
apm_service_catalog_readList services and map dependencies
events_readSearch platform and custom events
notebooks_readSearch and retrieve investigation notebooks
rum_apps_readSearch Real User Monitoring data
notebooks_writeCreate and edit investigation notebooks (optional)
Start with read scopes only. Add notebooks_write only for workflows where agents need to create investigation notebooks.

Agent capabilities

Once connected, agents can perform read and write operations across your Datadog environment.
CapabilityWhat the agent can do
LogsSearch logs across services and environments, analyze patterns and trends
MetricsSearch available metrics, query time-series data, retrieve metric metadata
MonitorsFind monitors by status, name, or tag
IncidentsSearch active and resolved incidents, get full incident details
DashboardsSearch and inspect dashboard configurations
InfrastructureList and inspect hosts across your infrastructure
APMRetrieve distributed traces, search spans for latency analysis
Service catalogList services and map service dependency relationships
EventsSearch platform and custom events
NotebooksSearch, retrieve, create, and edit investigation notebooks
RUMSearch Real User Monitoring data
Connection healthValidate that the Datadog connection is working
Notebook write operations require user approval before execution.

Verify the connection

@alex run the Datadog connection health check and summarize active monitors and host count

Example prompts

@alex search for error logs in the production environment from the last 15 minutes
@alex check for active Datadog incidents and investigate root causes
@alex analyze APM traces for the checkout service and identify latency bottlenecks

Troubleshooting

Verify your API key is valid and not revoked. Confirm your Application key has the required scopes and that both keys belong to the same Datadog organization.
Check that your Application key scopes include the data type you are querying (e.g., logs_read_data for logs). Verify your Datadog retention settings and confirm the service or host is actively sending data.
If queries return empty results, you may have selected the wrong site. Check your Datadog URL — app.datadoghq.com is US1, us3.datadoghq.com is US3, app.datadoghq.eu is EU1. Disconnect and reconnect with the correct site.
Both keys are required and serve different roles. The API key authenticates requests. The Application key controls which Datadog features and data the agent can access. One alone is not sufficient.

Security

  • Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
  • Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
  • Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
  • Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
  • Scoped Application keys — always specify explicit scopes; an unscoped key inherits the creating user’s full permissions.
  • Separate keys per integration — create dedicated API and Application keys for CloudThinker so you can revoke them independently.

https://mintcdn.com/cloudthinker/aLd-ttc-SCW-aFky/images/icons/grafana.svg?fit=max&auto=format&n=aLd-ttc-SCW-aFky&q=85&s=c1329049025cd3c3a0909b400baef7be

Grafana Connection

Alternative metrics and dashboards
https://mintcdn.com/cloudthinker/aLd-ttc-SCW-aFky/images/icons/pagerduty.svg?fit=max&auto=format&n=aLd-ttc-SCW-aFky&q=85&s=cdc34a966d5d46da70c3bc509a2a7492

PagerDuty Connection

Incident alerting and on-call