Datadog Automation via Rube MCP
Automate Datadog monitoring and observability operations through Composio's Datadog toolkit via Rube MCP.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active Datadog connection via
RUBE_MANAGE_CONNECTIONS with toolkit datadog
- Always call
RUBE_SEARCH_TOOLS first to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLS responds
- Call
RUBE_MANAGE_CONNECTIONS with toolkit datadog
- If connection is not ACTIVE, follow the returned auth link to complete Datadog authentication
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Query and Explore Metrics
When to use: User wants to query metric data or list available metrics
Tool sequence:
DATADOG_LIST_METRICS - List available metric names [Optional]
DATADOG_QUERY_METRICS - Query metric time series data [Required]
Key parameters:
query: Datadog metric query string (e.g., avg:system.cpu.user{host:web01})
from: Start timestamp (Unix epoch seconds)
to: End timestamp (Unix epoch seconds)
q: Search string for listing metrics
Pitfalls:
- Query syntax follows Datadog's metric query format:
aggregation:metric_name{tag_filters}
from and to are Unix epoch timestamps in seconds, not milliseconds
- Valid aggregations:
avg, sum, min, max, count
- Tag filters use curly braces:
{host:web01,env:prod}
- Time range should not exceed Datadog's retention limits for the metric type
2. Search and Analyze Logs
When to use: User wants to search log entries or list log indexes
Tool sequence:
DATADOG_LIST_LOG_INDEXES - List available log indexes [Optional]
DATADOG_SEARCH_LOGS - Search logs with query and filters [Required]
Key parameters:
query: Log search query using Datadog log query syntax
from: Start time (ISO 8601 or Unix timestamp)
to: End time (ISO 8601 or Unix timestamp)
sort: Sort order ('asc' or 'desc')
limit: Number of log entries to return
Pitfalls:
- Log queries use Datadog's log search syntax:
service:web status:error
- Search is limited to retained logs within the configured retention period
- Large result sets require pagination; check for cursor/page tokens
- Log indexes control routing and retention; filter by index if known
3. Manage Monitors
When to use: User wants to create, update, mute, or inspect monitors
Tool sequence:
DATADOG_LIST_MONITORS - List all monitors with filters [Required]
DATADOG_GET_MONITOR - Get specific monitor details [Optional]
DATADOG_CREATE_MONITOR - Create a new monitor [Optional]
DATADOG_UPDATE_MONITOR - Update monitor configuration [Optional]
DATADOG_MUTE_MONITOR - Silence a monitor temporarily [Optional]
DATADOG_UNMUTE_MONITOR - Re-enable a muted monitor [Optional]
Key parameters:
monitor_id: Numeric monitor ID
name: Monitor display name
type: Monitor type ('metric alert', 'service check', 'log alert', 'query alert', etc.)
query: Monitor query defining the alert condition
message: Notification message with @mentions
tags: Array of tag strings
thresholds: Alert threshold values (critical, warning, ok)
Pitfalls:
- Monitor
type must match the query type; mismatches cause creation failures
message supports @mentions for notifications (e.g., @slack-channel, @pagerduty)
- Thresholds vary by monitor type; metric monitors need
critical at minimum
- Muting a monitor suppresses notifications but the monitor still evaluates
- Monitor IDs are numeric integers
4. Manage Dashboards
When to use: User wants to list, view, update, or delete dashboards
Tool sequence:
DATADOG_LIST_DASHBOARDS - List all dashboards [Required]
DATADOG_GET_DASHBOARD - Get full dashboard definition [Optional]
DATADOG_UPDATE_DASHBOARD - Update dashboard layout or widgets [Optional]
DATADOG_DELETE_DASHBOARD - Remove a dashboard (irreversible) [Optional]
Key parameters:
dashboard_id: Dashboard identifier string
title: Dashboard title
layout_type: 'ordered' (grid) or 'free' (freeform positioning)
widgets: Array of widget definition objects
description: Dashboard description
Pitfalls:
- Dashboard IDs are alphanumeric strings (e.g., 'abc-def-ghi'), not numeric
layout_type cannot be changed after creation; must recreate the dashboard
- Widget definitions are complex nested objects; get existing dashboard first to understand structure
- DELETE is permanent; there is no undo
5. Create Events and Manage Downtimes
When to use: User wants to post events or schedule maintenance downtimes
Tool sequence:
DATADOG_LIST_EVENTS - List existing events [Optional]
DATADOG_CREATE_EVENT - Post a new event [Required]
DATADOG_CREATE_DOWNTIME - Schedule a maintenance downtime [Optional]
Key parameters for events:
title: Event title
text: Event body text (supports markdown)
alert_type: Event severity ('error', 'warning', 'info', 'success')
tags: Array of tag strings
Key parameters for downtimes:
scope: Tag scope for the downtime (e.g., host:web01)
start: Start time (Unix epoch)
end: End time (Unix epoch; omit for indefinite)
message: Downtime description
monitor_id: Specific monitor to downtime (optional, omit for scope-based)
Pitfalls:
- Event
text supports Datadog's markdown format including @mentions
- Downtimes scope uses tag syntax:
host:web01, env:staging
- Omitting
end creates an indefinite downtime; always set an end time for maintenance
- Downtime
monitor_id narrows to a single monitor; scope applies to all matching monitors
6. Manage Hosts and Traces
When to use: User wants to list infrastructure hosts or inspect distributed traces
Tool sequence:
DATADOG_LIST_HOSTS - List all reporting hosts [Required]
DATADOG_GET_TRACE_BY_ID - Get a specific distributed trace [Optional]
Key parameters:
filter: Host search filter string
sort_field: Sort hosts by field (e.g., 'name', 'apps', 'cpu')
sort_dir: Sort direction ('asc' or 'desc')
trace_id: Distributed trace ID for trace lookup
Pitfalls:
- Host list includes all hosts reporting to Datadog within the retention window
- Trace IDs are long numeric strings; ensure exact match
- Hosts that stop reporting are retained for a configured period before removal
Common Patterns
Monitor Query Syntax
Metric alerts:
avg(last_5m):avg:system.cpu.user{env:prod} > 90
Log alerts:
logs("service:web status:error").index("main").rollup("count").last("5m") > 10
Tag Filtering
- Tags use
key:value format: host:web01, env:prod, service:api
- Multiple tags:
{host:web01,env:prod} (AND logic)
- Wildcard:
host:web*
Pagination
- Use
page and page_size or offset-based pagination depending on endpoint
- Check response for total count to determine if more pages exist
- Continue until all results are retrieved
Known Pitfalls
Timestamps:
- Most endpoints use Unix epoch seconds (not milliseconds)
- Some endpoints accept ISO 8601; check tool schema
- Time ranges should be reasonable (not years of data)
Query Syntax:
- Metric queries:
aggregation:metric{tags}
- Log queries:
field:value pairs
- Monitor queries vary by type; check Datadog documentation
Rate Limits:
- Datadog API has per-endpoint rate limits
- Implement backoff on 429 responses
- Batch operations where possible
Quick Reference
| Task |
Tool Slug |
Key Params |
| Query metrics |
DATADOG_QUERY_METRICS |
query, from, to |
| List metrics |
DATADOG_LIST_METRICS |
q |
| Search logs |
DATADOG_SEARCH_LOGS |
query, from, to, limit |
| List log indexes |
DATADOG_LIST_LOG_INDEXES |
(none) |
| List monitors |
DATADOG_LIST_MONITORS |
tags |
| Get monitor |
DATADOG_GET_MONITOR |
monitor_id |
| Create monitor |
DATADOG_CREATE_MONITOR |
name, type, query, message |
| Update monitor |
DATADOG_UPDATE_MONITOR |
monitor_id |
| Mute monitor |
DATADOG_MUTE_MONITOR |
monitor_id |
| Unmute monitor |
DATADOG_UNMUTE_MONITOR |
monitor_id |
| List dashboards |
DATADOG_LIST_DASHBOARDS |
(none) |
| Get dashboard |
DATADOG_GET_DASHBOARD |
dashboard_id |
| Update dashboard |
DATADOG_UPDATE_DASHBOARD |
dashboard_id, title, widgets |
| Delete dashboard |
DATADOG_DELETE_DASHBOARD |
dashboard_id |
| List events |
DATADOG_LIST_EVENTS |
start, end |
| Create event |
DATADOG_CREATE_EVENT |
title, text, alert_type |
| Create downtime |
DATADOG_CREATE_DOWNTIME |
scope, start, end |
| List hosts |
DATADOG_LIST_HOSTS |
filter, sort_field |
| Get trace |
DATADOG_GET_TRACE_BY_ID |
trace_id |
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
1---2name: datadog-automation3description: "Automate Datadog tasks via Rube MCP (Composio): query metrics, search logs, manage monitors/dashboards, create events and downtimes. Always search tools first for current schemas."4version: 1.0.05author:6 name: "sickn33 / Antigravity Community"7 github: sickn338tags: [datadog, automation, reliability]9category: reliability10platforms: [macos, linux, windows]11license: MIT12metadata:13 hermes:14 source: https://skillmd.com/skills/nous-hermeshub/datadog-automation15 upstream: "antigravity-awesome-skills"16 risk: "critical"17 date_added: "2026-02-27"18 original_author: "Antigravity Community"19---2021# Datadog Automation via Rube MCP2223Automate Datadog monitoring and observability operations through Composio's Datadog toolkit via Rube MCP.2425## Prerequisites2627- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)28- Active Datadog connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `datadog`29- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas3031## Setup3233**Get Rube MCP**: Add `https://rube.app/mcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.3435361. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds372. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `datadog`383. If connection is not ACTIVE, follow the returned auth link to complete Datadog authentication394. Confirm connection status shows ACTIVE before running any workflows4041## Core Workflows4243### 1. Query and Explore Metrics4445**When to use**: User wants to query metric data or list available metrics4647**Tool sequence**:481. `DATADOG_LIST_METRICS` - List available metric names [Optional]492. `DATADOG_QUERY_METRICS` - Query metric time series data [Required]5051**Key parameters**:52- `query`: Datadog metric query string (e.g., `avg:system.cpu.user{host:web01}`)53- `from`: Start timestamp (Unix epoch seconds)54- `to`: End timestamp (Unix epoch seconds)55- `q`: Search string for listing metrics5657**Pitfalls**:58- Query syntax follows Datadog's metric query format: `aggregation:metric_name{tag_filters}`59- `from` and `to` are Unix epoch timestamps in seconds, not milliseconds60- Valid aggregations: `avg`, `sum`, `min`, `max`, `count`61- Tag filters use curly braces: `{host:web01,env:prod}`62- Time range should not exceed Datadog's retention limits for the metric type6364### 2. Search and Analyze Logs6566**When to use**: User wants to search log entries or list log indexes6768**Tool sequence**:691. `DATADOG_LIST_LOG_INDEXES` - List available log indexes [Optional]702. `DATADOG_SEARCH_LOGS` - Search logs with query and filters [Required]7172**Key parameters**:73- `query`: Log search query using Datadog log query syntax74- `from`: Start time (ISO 8601 or Unix timestamp)75- `to`: End time (ISO 8601 or Unix timestamp)76- `sort`: Sort order ('asc' or 'desc')77- `limit`: Number of log entries to return7879**Pitfalls**:80- Log queries use Datadog's log search syntax: `service:web status:error`81- Search is limited to retained logs within the configured retention period82- Large result sets require pagination; check for cursor/page tokens83- Log indexes control routing and retention; filter by index if known8485### 3. Manage Monitors8687**When to use**: User wants to create, update, mute, or inspect monitors8889**Tool sequence**:901. `DATADOG_LIST_MONITORS` - List all monitors with filters [Required]912. `DATADOG_GET_MONITOR` - Get specific monitor details [Optional]923. `DATADOG_CREATE_MONITOR` - Create a new monitor [Optional]934. `DATADOG_UPDATE_MONITOR` - Update monitor configuration [Optional]945. `DATADOG_MUTE_MONITOR` - Silence a monitor temporarily [Optional]956. `DATADOG_UNMUTE_MONITOR` - Re-enable a muted monitor [Optional]9697**Key parameters**:98- `monitor_id`: Numeric monitor ID99- `name`: Monitor display name100- `type`: Monitor type ('metric alert', 'service check', 'log alert', 'query alert', etc.)101- `query`: Monitor query defining the alert condition102- `message`: Notification message with @mentions103- `tags`: Array of tag strings104- `thresholds`: Alert threshold values (`critical`, `warning`, `ok`)105106**Pitfalls**:107- Monitor `type` must match the query type; mismatches cause creation failures108- `message` supports @mentions for notifications (e.g., `@slack-channel`, `@pagerduty`)109- Thresholds vary by monitor type; metric monitors need `critical` at minimum110- Muting a monitor suppresses notifications but the monitor still evaluates111- Monitor IDs are numeric integers112113### 4. Manage Dashboards114115**When to use**: User wants to list, view, update, or delete dashboards116117**Tool sequence**:1181. `DATADOG_LIST_DASHBOARDS` - List all dashboards [Required]1192. `DATADOG_GET_DASHBOARD` - Get full dashboard definition [Optional]1203. `DATADOG_UPDATE_DASHBOARD` - Update dashboard layout or widgets [Optional]1214. `DATADOG_DELETE_DASHBOARD` - Remove a dashboard (irreversible) [Optional]122123**Key parameters**:124- `dashboard_id`: Dashboard identifier string125- `title`: Dashboard title126- `layout_type`: 'ordered' (grid) or 'free' (freeform positioning)127- `widgets`: Array of widget definition objects128- `description`: Dashboard description129130**Pitfalls**:131- Dashboard IDs are alphanumeric strings (e.g., 'abc-def-ghi'), not numeric132- `layout_type` cannot be changed after creation; must recreate the dashboard133- Widget definitions are complex nested objects; get existing dashboard first to understand structure134- DELETE is permanent; there is no undo135136### 5. Create Events and Manage Downtimes137138**When to use**: User wants to post events or schedule maintenance downtimes139140**Tool sequence**:1411. `DATADOG_LIST_EVENTS` - List existing events [Optional]1422. `DATADOG_CREATE_EVENT` - Post a new event [Required]1433. `DATADOG_CREATE_DOWNTIME` - Schedule a maintenance downtime [Optional]144145**Key parameters for events**:146- `title`: Event title147- `text`: Event body text (supports markdown)148- `alert_type`: Event severity ('error', 'warning', 'info', 'success')149- `tags`: Array of tag strings150151**Key parameters for downtimes**:152- `scope`: Tag scope for the downtime (e.g., `host:web01`)153- `start`: Start time (Unix epoch)154- `end`: End time (Unix epoch; omit for indefinite)155- `message`: Downtime description156- `monitor_id`: Specific monitor to downtime (optional, omit for scope-based)157158**Pitfalls**:159- Event `text` supports Datadog's markdown format including @mentions160- Downtimes scope uses tag syntax: `host:web01`, `env:staging`161- Omitting `end` creates an indefinite downtime; always set an end time for maintenance162- Downtime `monitor_id` narrows to a single monitor; scope applies to all matching monitors163164### 6. Manage Hosts and Traces165166**When to use**: User wants to list infrastructure hosts or inspect distributed traces167168**Tool sequence**:1691. `DATADOG_LIST_HOSTS` - List all reporting hosts [Required]1702. `DATADOG_GET_TRACE_BY_ID` - Get a specific distributed trace [Optional]171172**Key parameters**:173- `filter`: Host search filter string174- `sort_field`: Sort hosts by field (e.g., 'name', 'apps', 'cpu')175- `sort_dir`: Sort direction ('asc' or 'desc')176- `trace_id`: Distributed trace ID for trace lookup177178**Pitfalls**:179- Host list includes all hosts reporting to Datadog within the retention window180- Trace IDs are long numeric strings; ensure exact match181- Hosts that stop reporting are retained for a configured period before removal182183## Common Patterns184185### Monitor Query Syntax186187**Metric alerts**:188```189avg(last_5m):avg:system.cpu.user{env:prod} > 90190```191192**Log alerts**:193```194logs("service:web status:error").index("main").rollup("count").last("5m") > 10195```196197### Tag Filtering198199- Tags use `key:value` format: `host:web01`, `env:prod`, `service:api`200- Multiple tags: `{host:web01,env:prod}` (AND logic)201- Wildcard: `host:web*`202203### Pagination204205- Use `page` and `page_size` or offset-based pagination depending on endpoint206- Check response for total count to determine if more pages exist207- Continue until all results are retrieved208209## Known Pitfalls210211**Timestamps**:212- Most endpoints use Unix epoch seconds (not milliseconds)213- Some endpoints accept ISO 8601; check tool schema214- Time ranges should be reasonable (not years of data)215216**Query Syntax**:217- Metric queries: `aggregation:metric{tags}`218- Log queries: `field:value` pairs219- Monitor queries vary by type; check Datadog documentation220221**Rate Limits**:222- Datadog API has per-endpoint rate limits223- Implement backoff on 429 responses224- Batch operations where possible225226## Quick Reference227228| Task | Tool Slug | Key Params |229|------|-----------|------------|230| Query metrics | DATADOG_QUERY_METRICS | query, from, to |231| List metrics | DATADOG_LIST_METRICS | q |232| Search logs | DATADOG_SEARCH_LOGS | query, from, to, limit |233| List log indexes | DATADOG_LIST_LOG_INDEXES | (none) |234| List monitors | DATADOG_LIST_MONITORS | tags |235| Get monitor | DATADOG_GET_MONITOR | monitor_id |236| Create monitor | DATADOG_CREATE_MONITOR | name, type, query, message |237| Update monitor | DATADOG_UPDATE_MONITOR | monitor_id |238| Mute monitor | DATADOG_MUTE_MONITOR | monitor_id |239| Unmute monitor | DATADOG_UNMUTE_MONITOR | monitor_id |240| List dashboards | DATADOG_LIST_DASHBOARDS | (none) |241| Get dashboard | DATADOG_GET_DASHBOARD | dashboard_id |242| Update dashboard | DATADOG_UPDATE_DASHBOARD | dashboard_id, title, widgets |243| Delete dashboard | DATADOG_DELETE_DASHBOARD | dashboard_id |244| List events | DATADOG_LIST_EVENTS | start, end |245| Create event | DATADOG_CREATE_EVENT | title, text, alert_type |246| Create downtime | DATADOG_CREATE_DOWNTIME | scope, start, end |247| List hosts | DATADOG_LIST_HOSTS | filter, sort_field |248| Get trace | DATADOG_GET_TRACE_BY_ID | trace_id |249250## When to Use251This skill is applicable to execute the workflow or actions described in the overview.252253## Limitations254- Use this skill only when the task clearly matches the scope described above.255- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.256- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.