Skip to main content
Version: Next

Datadog

Datadog

The Datadog source reads one resource per source stanza in batch mode. Define multiple source stanzas in a job to read resources with different scopes or time ranges.

Resources​

ResourceEndpointApplication-key permission
audit_logsGET /api/v2/audit/eventsaudit_logs_read
dashboardsGET /api/v1/dashboarddashboards_read
downtimesGET /api/v1/downtimemonitors_read
teamsGET /api/v2/teamteams_read
incidentsGET /api/v2/incidentsincident_read
logsGET /api/v2/logs/eventslogs_read_data
metricsGET /api/v2/metricsmetrics_read
monitorsGET /api/v1/monitormonitors_read
service_level_objectivesGET /api/v1/sloslos_read
synthetic_testsGET /api/v1/synthetics/testssynthetics_read
usersGET /api/v2/usersuser_access_read

The dashboards endpoint returns summaries. Metrics returns the metric catalog and its available metadata. Downtimes uses the v1 list, which returns one array. Monitors uses the v1 ID-offset walk. The response limit also applies to these two endpoint modes. The incidents endpoint is in public beta. teams reads modern general organization teams. The retired legacy incident-teams endpoint /api/v2/teams is not implemented, and incident_teams is not an accepted resource name. The application key needs teams_read and visibility of the organization teams you intend to read. Availability, visibility and retention depend on your Datadog site and organization.

Options​

OptionTypeRequiredDefaultDescription
resourceStringYes—One of the resources above.
access_keyStringYes—Datadog API key.
secret_keyStringYes—Datadog application key with permission for the resource.
siteStringNodatadoghq.comSite parameter. Also accepts us3.datadoghq.com, us5.datadoghq.com, datadoghq.eu, ap1.datadoghq.com, ap2.datadoghq.com, uk1.datadoghq.com, ddog-gov.com, and us2.ddog-gov.com.
start_timeStringFor logs and audit logs—Inclusive starting ISO-8601 instant.
end_timeStringNoInitial job timeExclusive ending ISO-8601 instant. An empty value uses the default. Applies to logs and audit logs.
logs_queryStringNoEmptyDatadog log search expression, up to 4,096 characters. Applies only to logs.
slice_daysIntegerNo1Event window size in days, from 1 to 31. A total configured interval can span up to 36,525 days.
metrics_window_secondsIntegerNo5184000Active-reporting metric catalog lookback from 0 to 5,184,000 seconds. Zero returns only metrics reported in the last few minutes; it does not request an unbounded history.
page_sizeIntegerNo100Requested rows per page, from 1 to 1,000. Smaller endpoint limits take precedence. Downtimes and the monitor ID walk do not take this parameter.
request_timeout_msIntegerNo10000Connection and socket idle timeout, from 100 to 60,000 ms.
page_deadline_msIntegerNo120000Maximum elapsed time for a page including retry waits, from 100 to 300,000 ms.
max_attemptsIntegerNo4Total attempts for a read-only page, from 1 to 8.
max_response_bytesIntegerNo8388608Maximum decompressed response size, from 1,024 to 16,777,216 bytes.

Output and recovery​

All four columns are strings. resource identifies the resource. id is the provider identifier, the public ID of a synthetic test, or the name of a scalar metric record. timestamp holds the original event timestamp for logs and audit logs. id and timestamp can be null. record contains the individual provider value as JSON, including a JSON string for a scalar metric name. JSON whitespace and number notation may be normalized. Nested values, numbers and Unicode are preserved.

Event windows include their start and exclude their end. Equal bounds return no records. The source preserves distinct events that share a timestamp. The first job run freezes its end time and a compatible recovery resumes the saved page or window. Credentials and settings that determine the query scope must match an existing checkpoint. Each new independent job reads the configured range and has no external watermark. Use an overlapping range and an idempotent sink if your scheduled jobs must account for late visibility.

This source has one active reader per stanza. Recovery may replay rows emitted after the checkpoint. Datadog's pagination reflects live data, so changes, retention, and expired cursors can affect reads. An expired cursor or changed checkpointed page prefix fails the job. Incomplete or forbidden responses also fail. Bounds apply to each response and to the total pages per resource or event window. HTTP 429 can delay a retry within the page deadline.

Example​

env {
job.mode = "BATCH"
checkpoint.interval = 1000
}
source {
Datadog {
resource = "logs"
site = "datadoghq.com"
access_key = ${DATADOG_ACCESS_KEY}
secret_key = ${DATADOG_SECRET_KEY}
start_time = "2026-01-01T00:00:00Z"
end_time = "2026-01-02T00:00:00Z"
logs_query = "service:checkout"
}
}
sink {
Console {}
}

Datadog sites · Datadog API

Changelog​

ChangeCommitVersion
[Feature][Connector-V2] Add the Datadog source connectorhttps://github.com/apache/seatunneldev