mcp_write permission or expose Datadog tools that create or modify resources.Before You Start
You need:- A Datadog account with access to the data Rootly AI should query.
- Permission in Rootly to manage AI connectors.
- A supported Datadog site: US1, US3, US5, EU1, AP1, or AP2. Datadog’s hosted MCP server isn’t available for GovCloud.
- The Datadog role permissions listed below.
Required: Allow Rootly’s OAuth Callback
A Datadog administrator must allowlist Rootly’s callback URL before anyone connects with OAuth. In Datadog, open Organization Settings → Organization Preferences → MCP OAuth Redirect URLs and add:https://rootly.com with that environment’s base URL. Keep the /account/ai-sre/remote_mcp_sources/callback path unchanged.
Required Permissions
The Datadog user authorizing OAuth needs these permissions through their role. Rootly requests the matching OAuth scopes.dbm_parameterized_queries_read is a valid Datadog role and application-key permission, but Datadog’s MCP OAuth client doesn’t authorize that scope. OAuth can investigate Database Monitoring metrics and spans with dbm_read; use API and application keys when an investigation needs parameterized query-pattern access.mcp_write. A custom Datadog role only needs MCP Read and the resource-level read permissions for the data Rootly should access.Additional Permissions for API and Application Keys
The key-based fallback validates the application key’s scopes before saving the connection. The application key and the user or service account that owns it need every permission below: This broader list intentionally preserves the existing key-based connector’s legacy read surface for backward compatibility. Use OAuth when you want the smallest permission set supported by the Datadog MCP connector.user_app_keysmcp_readapm_readapm_service_catalog_readcontainers_readlogs_read_datalogs_read_index_datamonitors_readapm_api_catalog_readapm_pipelines_readapm_remote_configuration_readapm_retention_filter_readapm_service_ingest_readcontinuous_profiler_pgo_readcontinuous_profiler_readdebugger_readdashboards_readdbm_parameterized_queries_readdbm_readerror_tracking_readevents_readlogs_read_archiveslogs_read_configlogs_read_workspacesmetrics_readtimeseries_querynotebooks_readon_call_readrum_apps_readcd_visibility_readci_visibility_readsynthetics_default_settings_readsynthetics_global_variable_readsynthetics_private_location_readsynthetics_readteams_read
user_app_keys permission lets Rootly inspect the submitted application key’s scopes during setup.
Connect Datadog With OAuth
Before continuing, confirm that a Datadog administrator completed Required: Allow Rootly’s OAuth Callback.Open AI Connectors
Choose Your Datadog Site
Start OAuth
Choose the Datadog Organization
Authorize Rootly
Confirm the Connection
Connect With API and Application Keys
Use this fallback when your organization can’t complete the OAuth flow.Create Scoped Datadog Keys
Open the Key Form
Connect With Keys
What Rootly AI Can Read
Rootly connects to Datadog’score MCP toolset and exposes reviewed, read-only investigation tools.
Questions To Ask
Include a service, environment, and bounded time range when possible. These prompts work in Rootly AI SRE and the Slack agent:- “Which services emitted new error log signatures in
prodduring the last 30 minutes compared with the preceding 30 minutes?” - “Break down
checkout-apip95 latency by resource for the incident window. Which endpoint regressed most against baseline?” - “Find error spans for
payment-apibetween 14:00 and 14:20 UTC, then expand the slowest trace and identify the failing dependency.” - “Did the checkout error-rate monitor alert because of one environment, region, or host? Show the metric contributors.”
- “Compare blocked database sessions during the incident with the same window yesterday. Which wait type or query pattern changed?”
- “How many RUM checkout errors occurred in the incident window, grouped by browser and country?”
- “List the exact Datadog service and environment names before querying logs for the authentication failure.”
Data Handling and Permissions
- On-demand queries. Rootly AI calls Datadog when an investigation or direct question needs current data.
- Datadog permissions apply. Results are limited by the OAuth user’s role or the application key owner’s access.
- Read-only boundary. Rootly requests read scopes and enforces a reviewed tool set before every call.
- Encrypted credentials. Rootly encrypts OAuth credentials and API or application keys at rest.
- AI traces may contain results. Datadog responses can appear in Rootly AI model and observability traces. See Data Privacy for Rootly AI for retention details.
- Datadog rate limits apply. Investigation queries count against your Datadog organization’s API limits.
Manage the Connection
Open AI & Agents → Connectors and find the Datadog MCP card.- Click Configure to authorize a different Datadog organization, choose another site, or switch authentication methods. Rootly keeps the current connection active until the replacement is authorized and validated.
- Click Disconnect to remove the connection and stop future Datadog queries.
Troubleshooting
Datadog rejects the OAuth redirect URL
Datadog rejects the OAuth redirect URL
https://rootly.com/account/ai-sre/remote_mcp_sources/callback without a trailing slash.Clicking the Datadog organization doesn't continue
Clicking the Datadog organization doesn't continue
A query returns a permission error
A query returns a permission error
mcp_read plus the read permission for that resource. For example, monitor queries need mcp_read and monitors_read; log queries need mcp_read, logs_read_data, and logs_read_index_data.The key-based connection can't inspect application-key permissions
The key-based connection can't inspect application-key permissions
user_app_keys to both the scoped application key and its owner, then connect again. Rootly rejects a key-based connection when it can’t verify the application key’s scopes.The connection succeeds but queries return no data
The connection succeeds but queries return no data
Some services or environments are missing
Some services or environments are missing
Frequently Asked Questions
Is the Datadog MCP connector the same as the Datadog Alert Source?
Is the Datadog MCP connector the same as the Datadog Alert Source?
Does OAuth require Datadog API or application keys?
Does OAuth require Datadog API or application keys?
Can Rootly AI modify Datadog resources?
Can Rootly AI modify Datadog resources?
mcp_write, and its reviewed Datadog tool set excludes resource creation, updates, and deletion.Can I connect multiple Datadog organizations?
Can I connect multiple Datadog organizations?
Which Datadog sites are supported?
Which Datadog sites are supported?
Does Rootly cache Datadog data?
Does Rootly cache Datadog data?