AppsPricingBlogTry it
Datadog logo
Gmail logo

Connect Datadog to Gmail

Use 1 documented Datadog triggers to run 20 documented Gmail actions.

1 source triggers
20 target actions
Reverse direction supported

Why Connect Datadog & Gmail?

Start with a Datadog event

Choose from 1 documented triggers, including New Monitor Event (Instant).

Run a Gmail action

Send the event into one of 20 documented actions, such as Add Label to Email, Approve Workflow, Archive Email.

Map and review the workflow

Choose the fields and conditions for the workflow, then test the result before activation.

Available Triggers & Actions

Datadog logo

Datadog

Triggers (1)

New Monitor Event (Instant)

Emit new events captured by a Datadog monitor

webhook

Actions (13)

Get Account Info

Detect the Datadog region for the connected account. Call this FIRST before any other Datadog tool if you do not already know the region. Returns the region domain (e.g. datadoghq.com) which must be passed as the region parameter to **Search Logs**, **Search Monitors**, **Get Metric Data**, and all other Datadog tools. See the docs

Get Account Region

Detect the Datadog region for the connected account by validating the API key against each regional endpoint. Use this to discover the correct region before calling other Datadog actions. See the docs

Get Metric Data

Query time-series metric data for analyzing trends and system performance. Query syntax: avg:system.cpu.user{*}, sum:requests.count{env:prod} by {host}, max:system.mem.used{service:web}. Both from and to are POSIX timestamps in seconds. Use **Search Metrics** first to discover available metric names. Use **Search Hosts** to find valid host tags for scoping. After finding anomalies, use **Search Logs** to investigate related entries. See the docs

List Logs

Get a list of logs matching a filter query. Uses the GET endpoint with a higher rate limit (3600/hr vs 300/hr). See the docs

Post Metric Data

Post custom time-series metric data points to Datadog. Data appears in dashboards, monitors, and can be queried via **Get Metric Data**. Points: JSON object where keys are Unix timestamps (seconds) and values are numeric, e.g. {"1640995200": 1.0}. Use **Search Metrics** to verify a metric name exists, or post to a new name to create it. This is a WRITE operation that creates or appends data to a metric time series. See the docs

Search Dashboards

List and search Datadog dashboards. Returns dashboard IDs, titles, URLs, and metadata. Dashboard URL: https://app.{region}/dashboard/{id} where region comes from **Get Account Info**. Use alongside **Search Services** to find dashboards related to a specific service. See the docs

Search Events

Search Datadog events: monitor state changes, deployment markers, error spikes, and infrastructure events. Filter by sources (e.g. nagios,docker), tags (e.g. env:prod,service:web), and priority (normal or low). Time range defaults to last 24h (POSIX timestamps in seconds). To investigate a monitor alert, use **Search Monitors** first, then search events for the relevant time range. Follow up with **Search Logs** for deeper investigation. See the docs

Search Hosts

Search monitored infrastructure hosts. Filter by tag (env:production), name (host:web-01), or partial match. Sort by cpu, iowait, load, status, or apps. Host names from results can scope queries in **Get Metric Data** (e.g. avg:system.cpu.user{host:web-01}), filter logs in **Search Logs** (host:web-01), or filter metrics in **Search Metrics**. Max 1000 results. See the docs

Search Incidents

Search Datadog incidents by state, severity, and metadata. Query syntax: state:active, state:resolved, severity:SEV-1. After finding an incident, investigate with: **Search Logs** for the incident time window, **Get Metric Data** for relevant metrics, **Search Events** for related monitor alerts, and **Search Services** for ownership info. See the docs

Search Logs

Search Datadog logs matching a query with support for facets and time ranges. Uses log search syntax: service:web-app status:error, @http.status_code:>=400, boolean operators (AND, OR, NOT), and wildcards. Set from to now-1h for recent logs. Use **Search Metrics** to discover metric names or **Search Hosts** to find host names for filtering. To investigate an incident, use **Search Incidents** first, then search logs for that time window and service. See the docs

Search Metrics

Discovery tool: list available Datadog metric names, optionally filtered by host. Returns metric name strings (e.g. system.cpu.user, aws.ec2.cpuutilization) for use in **Get Metric Data** queries with the syntax aggregation:metric.name{tags}. Use **Search Hosts** to find valid host names for the host filter. See the docs

Search Monitors

Search Datadog monitors (alerting rules) including status, thresholds, and conditions. Query syntax: tag:env:production, type:metric, status:Alert. Tags filter: comma-separated (e.g. env:prod,team:backend). After finding a monitor, use **Search Events** to see recent state changes, or **Get Metric Data** to query the underlying metric it tracks. Returns monitor ID, name, type, query, status, and tags. See the docs

Search Services

List services from Datadog's Service Catalog with ownership, metadata, and team info. Use to discover service names for filtering in **Search Logs** (service:my-app) or finding monitors via **Search Monitors** (tag:service:my-app). Returns service definitions including links, docs, and on-call. See the docs

Gmail logo

Gmail

Triggers (5)

New Attachment Received

Emit new event for each attachment in a message received. This source is capped at 100 max new messages per run.

polling
New Email Matching Search

Emit new event when an email matching the search criteria is received. This source is capped at 100 max new messages per run.

polling
New Email Received

Emit new event when a new email is received.

polling
New Labeled Email

Emit new event when a new email is labeled.

polling
New Sent Email

Emit new event for each new email sent. (Maximum of 100 events emited per execution)

polling

Actions (20)

Add Label to Email

Add label(s) to an email message. See the docs

Approve Workflow

Suspend the workflow until approved by email. See the documentation

Archive Email

Archive an email message. See the documentation

Bulk Archive Emails

Archive multiple emails at once. See the documentation

Create Draft

Create a draft from your Google Workspace email account. See the documentation

Create Label

Create a new label in the connected account. See the documentation

Delete Email

Moves the specified message to the trash. See the documentation

Download Attachment

Download an attachment by attachmentId to the /tmp directory. See the documentation

Find Email

Find an email using Google's Search Engine. See the docs

Get Current User

Returns the authenticated Gmail user's name, email address, and mailbox stats (total messages and threads). Call this first when the user says 'my emails', 'my inbox', or needs identity context. Use the returned emailAddress to identify the user's own messages in **Find Email** results. See the documentation.

Get Send As Alias

Get a send as alias for the authenticated user. See the documentation

List Labels

List all the existing labels in the connected account. See the docs

List Send as a Delegate Options

Retrieves available options for the Send as a Delegate field.

List Send As Aliases

List all send as aliases for the authenticated user. See the documentation

List Signature Options

Retrieves available options for the Signature field.

List Thread Messages

List messages in a thread. See the docs

Remove Label from Email

Remove label(s) from an email message. See the docs

Send Email

Send an email from your Google Workspace email account. See the documentation

Update Signature for Email in Organization

Update the signature for a specific email address in an organization. A Google Cloud service account with delegated domain-wide authority is required for this action. See the documentation

Update Signature for Primary Email Address

Update the signature for the primary email address. See the documentation

Integration Features

1 documented Datadog triggers
20 documented Gmail actions
Configurable field mapping
Conditional workflow steps
Execution monitoring
A supported Gmail to Datadog direction

Capability Examples

Datadog trigger → Gmail action

Catalog example
DatadogDatadog

New Monitor Event (Instant)

GmailGmail

Add Label to Email

Gmail trigger → Datadog action

Reverse direction
GmailGmail

New Attachment Received

DatadogDatadog

Get Account Info

How It Works

1

Connect Apps

Authenticate your Datadog and Gmail accounts

2

Choose a Trigger

Select a documented Datadog event

3

Choose an Action

Select the documented Gmail operation to run

Test and Review

Verify field mapping and provider responses before activation

Frequently Asked Questions

Integration Benefits

Trigger-driven Workflows

Start the supported direction from one of 1 documented Datadog triggers.

Automated Actions

Run one of 20 documented Gmail actions after the selected trigger fires.

Provider Authentication

Review the authentication requirements published by each provider before activating the workflow.

Guided Configuration

Select a documented trigger, choose a target action, and map the fields required by the workflow.

Field Mapping

Map the fields exposed by the selected trigger and action, then review the required provider inputs.

Execution Review

Test the workflow and review provider responses before relying on it in production.

Gmail logoDatadog logo

Reverse Integration Available

Also connect Gmail to Datadog for bidirectional automation

View Integration
Datadog logo

All Datadog Integrations

Explore all available Datadog connections

View All Integrations
Gmail logo

All Gmail Integrations

Explore all available Gmail connections

View All Integrations

Ready to Connect Datadog & Gmail?

Build this supported workflow in Mazaal AI and test it with your own provider accounts.

Get Started Free