Skip to main content
Datadog logs, monitors, metrics, dashboards, and APM traces.Your agent can inspect the current setup, prepare the connection and test access. You choose the account and resource scope, approve provider consent when needed, and authorize any required grants.
Connect Datadog so Struct Agent can query logs, metrics, traces and monitoring context. Check the permissions needed for the requested job; monitor changes require the corresponding write access.

Inspect access and existing connections

Use a claimed workspace with permission to configure connections.
Use the catalog’s current fields, choices and permission requirements. Reuse an existing healthy connection instead of creating a duplicate.

Connect with the CLI

Supply credentials from approved secret storage through DATADOG_API_KEY, DATADOG_APP_KEY. The catalog describes which are needed for the selected authentication method. Do not put literal secrets in shell arguments or chat.Replace example values with the intended resource:
Choose the correct site, for example --site us5. A 403 for metrics while logs work can indicate missing timeseries_query. Check the permission report rather than granting a broad role blindly.

Verify and recover

Use the returned connection ID:
Inspect ok, health and missing permissions, not only the exit code. struct connections grant-command CONNECTION_ID prints repair instructions where supported; have an authorized operator apply them. For expired OAuth links, start the connection command again and use the new link. Do not reconnect to a different account silently.Verify a bounded operation for the requested job. Connection health proves checked access; it does not prove telemetry arrival, an investigation or alert delivery.

What Struct reads

Metrics, monitors and their history, APM traces by trace ID, logs, dashboards, and events such as deploys and config changes.

What Struct writes

With Auto Monitors on, Struct creates and maintains its own monitors, plus one webhook that sends their alerts back to Struct.

Permissions

The application key’s role needs these scopes: monitors_read, integrations_read, metrics_read, timeseries_query, logs_read_data, apm_read, apm_service_catalog_read, dashboards_read, events_read, slos_read. Auto Monitors also needs monitors_write, create_webhooks, manage_integrations.

Telemetry and monitor reads

Read logs, metrics, APM traces, dashboards and existing monitors.

Manage monitoring

Create and maintain the monitors Struct manages and the webhook that sends their alerts to Struct.
  • Datadog checks permissions on the application key’s role, not the API key. A missing scope shows up as 403 Forbidden from the matching endpoint.

How to grant

Give the application key’s role these scopes. Open https://app.datadoghq.com/organization-settings/application-keys, select the application key Struct uses, and give its role these scopes: monitors_read, monitors_write, integrations_read, create_webhooks, manage_integrations, metrics_read, timeseries_query, logs_read_data, apm_read, apm_service_catalog_read, dashboards_read, events_read, slos_read.Permission catalog version 2026-11-04.1. See permission changes.