AACFlow

Datadog

Monitor infrastructure, applications, and logs with Datadog

Usage Instructions

Integrate Datadog monitoring into workflows. Submit metrics, manage monitors, query logs, create events, handle downtimes, and more.

Tools

datadog_submit_metrics

Submit custom metrics to Datadog. Use for tracking application performance, business metrics, or custom monitoring data.

Input

ParameterTypeRequiredDescription
seriesstringYesJSON array of metric series to submit. Each series should include metric name, type (gauge/rate/count), points (timestamp/value pairs), and optional tags.
apiKeystringYesNo description
sitestringNoNo description

Output

ParameterTypeDescription
successbooleanWhether the metrics were submitted successfully
errorsarrayAny errors that occurred during submission

datadog_query_timeseries

Query metric timeseries data from Datadog. Use for analyzing trends, creating reports, or retrieving metric values.

Input

ParameterTypeRequiredDescription
querystringYesDatadog metrics query (e.g., "avg:system.cpu.user{*}", "sum:nginx.requests{env:prod}.as_count()")
fromnumberYesNo description
tonumberYesNo description
apiKeystringYesNo description
applicationKeystringYesNo description
sitestringNoNo description

Output

ParameterTypeDescription
seriesarrayArray of timeseries data with metric name, tags, and data points
statusstringQuery status

datadog_create_event

Post an event to the Datadog event stream. Use for deployment notifications, alerts, or any significant occurrences.

Input

ParameterTypeRequiredDescription
titlestringYesNo description
textstringYesNo description
alertTypestringNoAlert type: error, warning, info, success, user_update, recommendation, or snapshot
prioritystringNoNo description
hoststringNoHost name to associate with this event (e.g., "web-server-01", "prod-api-1")
tagsstringNoComma-separated list of tags (e.g., "env:production,service:api", "team:backend,priority:high")
aggregationKeystringNoNo description
sourceTypeNamestringNoNo description
dateHappenednumberNoUnix timestamp in seconds when the event occurred (e.g., 1705320000, defaults to now)
apiKeystringYesNo description
sitestringNoNo description

Output

ParameterTypeDescription
eventobjectThe created event details
idnumberEvent ID
titlestringEvent title
textstringEvent text
date_happenednumberUnix timestamp when event occurred
prioritystringEvent priority
alert_typestringAlert type
hoststringAssociated host
tagsarrayEvent tags
urlstringURL to view the event in Datadog

datadog_create_monitor

Create a new monitor/alert in Datadog. Monitors can track metrics, service checks, events, and more.

Input

ParameterTypeRequiredDescription
namestringYesNo description
typestringYesMonitor type: metric alert, service check, event alert, process alert, log alert, query alert, composite, synthetics alert, slo alert
querystringYesMonitor query (e.g., "avg(last_5m):avg:system.cpu.idle{*} < 20", "logs("status:error").index("main").rollup("count").last("5m") > 100")
messagestringNoNo description
tagsstringNoNo description
prioritynumberNoNo description
optionsstringNoJSON string of monitor options (thresholds, notify_no_data, renotify_interval, etc.)
apiKeystringYesNo description
applicationKeystringYesNo description
sitestringNoNo description

Output

ParameterTypeDescription
monitorobjectThe created monitor details
idnumberMonitor ID
namestringMonitor name
typestringMonitor type
querystringMonitor query
messagestringNotification message
tagsarrayMonitor tags
prioritynumberMonitor priority
overall_statestringCurrent monitor state
createdstringCreation timestamp
modifiedstringLast modification timestamp

datadog_get_monitor

Input

ParameterTypeRequiredDescription
monitorIdstringYesThe ID of the monitor to retrieve (e.g., "12345678")
groupStatesstringNoComma-separated group states to include (e.g., "alert,warn", "alert,warn,no data,ok")
withDowntimesbooleanNoNo description
apiKeystringYesNo description
applicationKeystringYesNo description
sitestringNoNo description

Output

ParameterTypeDescription
monitorobjectThe monitor details
idnumberMonitor ID
namestringMonitor name
typestringMonitor type
querystringMonitor query
messagestringNotification message
tagsarrayMonitor tags
prioritynumberMonitor priority
overall_statestringCurrent monitor state
createdstringCreation timestamp
modifiedstringLast modification timestamp

datadog_list_monitors

Input

ParameterTypeRequiredDescription
groupStatesstringNoComma-separated group states to filter by (e.g., "alert,warn", "alert,warn,no data,ok")
namestringNoFilter monitors by name with partial match (e.g., "CPU", "Production")
tagsstringNoComma-separated list of tags to filter by (e.g., "env:prod,team:backend")
monitorTagsstringNoComma-separated list of monitor tags to filter by (e.g., "service:api,priority:high")
withDowntimesbooleanNoNo description
pagenumberNoNo description
pageSizenumberNoNo description
apiKeystringYesNo description
applicationKeystringYesNo description
sitestringNoNo description

Output

ParameterTypeDescription
monitorsarrayList of monitors
idnumberMonitor ID
namestringMonitor name
typestringMonitor type
querystringMonitor query
overall_statestringCurrent state
tagsarrayTags

datadog_mute_monitor

Input

ParameterTypeRequiredDescription
monitorIdstringYesThe ID of the monitor to mute (e.g., "12345678")
scopestringNoScope to mute (e.g., "host:myhost", "env:prod"). If not specified, mutes all scopes.
endnumberNoUnix timestamp in seconds when the mute should end (e.g., 1705323600). If not specified, mutes indefinitely.
apiKeystringYesNo description
applicationKeystringYesNo description
sitestringNoNo description

Output

ParameterTypeDescription
successbooleanWhether the monitor was successfully muted

datadog_query_logs

Search and retrieve logs from Datadog. Use for troubleshooting, analysis, or monitoring.

Input

ParameterTypeRequiredDescription
querystringYesLog search query using Datadog query syntax (e.g., "service:web-app status:error", "host:prod-* @http.status_code:500")
fromstringYesStart time in ISO-8601 format or relative time (e.g., "now-1h", "now-15m", "2024-01-15T10:00:00Z")
tostringYesEnd time in ISO-8601 format or relative time (e.g., "now", "now-5m", "2024-01-15T12:00:00Z")
limitnumberNoNo description
sortstringNoSort order: "timestamp" for oldest first, "-timestamp" for newest first
indexesstringNoNo description
apiKeystringYesNo description
applicationKeystringYesNo description
sitestringNoNo description

Output

ParameterTypeDescription
logsarrayList of log entries
idstringLog ID
contentobjectLog content
timestampstringLog timestamp
hoststringHost name
servicestringService name
messagestringLog message
statusstringLog status/level
nextLogIdstringCursor for pagination

datadog_send_logs

Input

ParameterTypeRequiredDescription
logsstringYesJSON array of log entries. Each entry should have message and optionally ddsource, ddtags, hostname, service.
apiKeystringYesNo description
sitestringNoNo description

Output

ParameterTypeDescription
successbooleanWhether the logs were sent successfully

datadog_create_downtime

Input

ParameterTypeRequiredDescription
scopestringYesScope to apply downtime to (e.g., "host:myhost", "env:production", or "*" for all)
messagestringNoNo description
startnumberNoUnix timestamp for downtime start in seconds (e.g., 1705320000, defaults to now)
endnumberNoNo description
timezonestringNoTimezone for the downtime (e.g., "America/New_York", "UTC", "Europe/London")
monitorIdstringNoSpecific monitor ID to mute (e.g., "12345678")
monitorTagsstringNoComma-separated monitor tags to match (e.g., "team:backend,priority:high")
muteFirstRecoveryNotificationbooleanNoNo description
apiKeystringYesNo description
applicationKeystringYesNo description
sitestringNoNo description

Output

ParameterTypeDescription
downtimeobjectThe created downtime details
idnumberDowntime ID
scopearrayDowntime scope
messagestringDowntime message
startnumberStart time (Unix timestamp)
endnumberEnd time (Unix timestamp)
activebooleanWhether downtime is currently active

datadog_list_downtimes

Input

ParameterTypeRequiredDescription
currentOnlybooleanNoNo description
monitorIdstringNoFilter by monitor ID (e.g., "12345678")
apiKeystringYesNo description
applicationKeystringYesNo description
sitestringNoNo description

Output

ParameterTypeDescription
downtimesarrayList of downtimes
idnumberDowntime ID
scopearrayDowntime scope
messagestringDowntime message
startnumberStart time (Unix timestamp)
endnumberEnd time (Unix timestamp)
activebooleanWhether downtime is currently active

datadog_cancel_downtime

Input

ParameterTypeRequiredDescription
downtimeIdstringYesThe ID of the downtime to cancel (e.g., "abc123def456")
apiKeystringYesNo description
applicationKeystringYesNo description
sitestringNoNo description

Output

ParameterTypeDescription
successbooleanWhether the downtime was successfully canceled

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started