Datadog
Connect & Ingest data from Datadog
Datadog is a monitoring and analytics platform for cloud-scale infrastructure, applications, and logs. The Sling Datadog connector extracts data from the Datadog REST API, supporting monitors, dashboards, events, users, synthetics tests, SLOs, downtimes, incidents, audit logs, and metrics.
CLI Pro Required: APIs require a CLI Pro token or Platform Plan.
Setup
The following credentials and inputs are accepted:
Secrets:
api_key(required) -> Your Datadog API keyapp_key(required) -> Your Datadog Application keysite(optional) -> Your Datadog site domain (default:datadoghq.com). Usedatadoghq.eufor EU,us3.datadoghq.com,us5.datadoghq.com,ap1.datadoghq.com, orddog-gov.comfor other regions.
Inputs:
anchor_date(optional) -> The starting date for historical data extraction (default: 1 year ago). Format:YYYY-MM-DDevents_filter_query(optional) -> Filter query for the events endpoint using Datadog search syntax (e.g.,source:kubernetes,status:error)audit_filter_query(optional) -> Filter query for the audit logs endpoint (e.g.,@action:login,@user.email:[email protected])monitor_tags(optional) -> Comma-separated tags to filter monitors (e.g.,env:prod,team:backend)monitor_name(optional) -> Filter monitors by name substring (e.g.,cpu)host_filter(optional) -> Filter hosts by name, alias, or tag (e.g.,env:prod)include_hosts_metadata(optional) -> Include additional host metadata like agent version and platform (true/false)metrics_host(optional) -> Filter active metrics to a specific hostnamemetrics_tag_filter(optional) -> Filter metrics by tags with boolean/wildcard support (e.g.,env:production AND service:api)
Getting Your API Key
Log in to your Datadog Dashboard
Go to Organization Settings > API Keys
Click + New Key, give it a name, and copy the key
Getting Your Application Key
In the Datadog Dashboard, go to Organization Settings > Application Keys
Click + New Key, give it a name, and copy the key
Important: Both an API key and an Application key are required. The API key alone is not sufficient for most read endpoints.
Using sling conns
sling connsEnvironment Variable
See here to learn more about the .env.sling file.
Sling Env File YAML
See here to learn more about the sling env.yaml file.
For EU or other regional sites:
Replication
Here's an example replication configuration to sync Datadog data to a PostgreSQL database:
Endpoints
Core Monitoring
monitors
Alert monitors and their configurations
No
dashboards
Dashboard summaries
No
events
Events with timestamp-based incremental sync
Yes
audit_logs
Audit log events with timestamp-based incremental sync
Yes
Infrastructure & Testing
hosts
Hosts in the organization
No
synthetics_tests
Synthetic monitoring tests
No
metrics
Active metric names
No
Operational
slos
Service Level Objectives
No
downtimes
Scheduled downtimes
No
users
Organization users
No
incidents
Incidents
No
To discover available endpoints:
Filtering
Several endpoints support optional filter parameters to narrow down results. Filters can be set in two ways:
Connection inputs — set globally on the connection (applies to all replications)
Replication store hooks — set per-replication (overrides connection inputs)
Via Connection Inputs
Via Replication Store Hooks
Use store hooks to set filters per-replication without modifying the connection:
Store values take priority over connection inputs, so you can set defaults in the connection and override per-replication.
Available Filters
events_filter_query
events
Datadog search syntax (e.g., source:kubernetes, status:error, tags:env:production)
audit_filter_query
audit_logs
Search audit events (e.g., @action:login, @user.email:[email protected])
monitor_tags
monitors
Comma-separated scope tags (e.g., env:prod,role:web)
monitor_name
monitors
Substring match on monitor name (e.g., cpu)
host_filter
hosts
Filter by name, alias, or tag (e.g., env:prod)
include_hosts_metadata
hosts
Include additional host metadata like agent version and platform (true/false)
metrics_host
metrics
Filter to metrics from a specific host
metrics_tag_filter
metrics
Tag filter with boolean/wildcard support (e.g., env:production AND service:api)
Incremental Sync
The events and audit_logs endpoints support incremental sync via timestamp:
First run: Fetches all records from
anchor_date(default: 1 year ago) to presentSubsequent runs: Only fetches records created after the last sync timestamp
Regional Sites
Datadog operates in multiple regions. Set the site secret to use a different region:
US1 (default)
datadoghq.com
US3
us3.datadoghq.com
US5
us5.datadoghq.com
EU
datadoghq.eu
AP1
ap1.datadoghq.com
US1-FED
ddog-gov.com
Rate Limiting
The Datadog API has rate limits that vary by endpoint. The connector automatically:
Uses conservative rate limiting (5 requests/second)
Retries with exponential backoff on 429 (rate limit) responses
Retries on 5xx server errors with linear backoff
If you are facing issues connecting, please reach out to us at [email protected], on discord or open a Github Issue here.
Last updated
Was this helpful?