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.
Source: sickn33/agentic-awesome-skills → skills/datadog-automation/SKILL.md
Also appears in: sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills/skills/datadog-automation/SKILL.md, sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills-claude/skills/datadog-automation/SKILL.md
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."4category: mcp-and-integrations5source_repo: sickn33/agentic-awesome-skills6source_path: "skills/datadog-automation/SKILL.md"7source_url: https://github.com/sickn33/agentic-awesome-skills/blob/HEAD/skills/datadog-automation/SKILL.md8metadata:9 source: https://skillmd.com/skills/sickn33/datadog-automation10---111213# Datadog Automation via Rube MCP1415Automate Datadog monitoring and observability operations through Composio's Datadog toolkit via Rube MCP.1617## Prerequisites1819- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)20- Active Datadog connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `datadog`21- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas2223## Setup2425**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.2627281. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds292. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `datadog`303. If connection is not ACTIVE, follow the returned auth link to complete Datadog authentication314. Confirm connection status shows ACTIVE before running any workflows3233## Core Workflows3435### 1. Query and Explore Metrics3637**When to use**: User wants to query metric data or list available metrics3839**Tool sequence**:401. `DATADOG_LIST_METRICS` - List available metric names [Optional]412. `DATADOG_QUERY_METRICS` - Query metric time series data [Required]4243**Key parameters**:44- `query`: Datadog metric query string (e.g., `avg:system.cpu.user{host:web01}`)45- `from`: Start timestamp (Unix epoch seconds)46- `to`: End timestamp (Unix epoch seconds)47- `q`: Search string for listing metrics4849**Pitfalls**:50- Query syntax follows Datadog's metric query format: `aggregation:metric_name{tag_filters}`51- `from` and `to` are Unix epoch timestamps in seconds, not milliseconds52- Valid aggregations: `avg`, `sum`, `min`, `max`, `count`53- Tag filters use curly braces: `{host:web01,env:prod}`54- Time range should not exceed Datadog's retention limits for the metric type5556### 2. Search and Analyze Logs5758**When to use**: User wants to search log entries or list log indexes5960**Tool sequence**:611. `DATADOG_LIST_LOG_INDEXES` - List available log indexes [Optional]622. `DATADOG_SEARCH_LOGS` - Search logs with query and filters [Required]6364**Key parameters**:65- `query`: Log search query using Datadog log query syntax66- `from`: Start time (ISO 8601 or Unix timestamp)67- `to`: End time (ISO 8601 or Unix timestamp)68- `sort`: Sort order ('asc' or 'desc')69- `limit`: Number of log entries to return7071**Pitfalls**:72- Log queries use Datadog's log search syntax: `service:web status:error`73- Search is limited to retained logs within the configured retention period74- Large result sets require pagination; check for cursor/page tokens75- Log indexes control routing and retention; filter by index if known7677### 3. Manage Monitors7879**When to use**: User wants to create, update, mute, or inspect monitors8081**Tool sequence**:821. `DATADOG_LIST_MONITORS` - List all monitors with filters [Required]832. `DATADOG_GET_MONITOR` - Get specific monitor details [Optional]843. `DATADOG_CREATE_MONITOR` - Create a new monitor [Optional]854. `DATADOG_UPDATE_MONITOR` - Update monitor configuration [Optional]865. `DATADOG_MUTE_MONITOR` - Silence a monitor temporarily [Optional]876. `DATADOG_UNMUTE_MONITOR` - Re-enable a muted monitor [Optional]8889**Key parameters**:90- `monitor_id`: Numeric monitor ID91- `name`: Monitor display name92- `type`: Monitor type ('metric alert', 'service check', 'log alert', 'query alert', etc.)93- `query`: Monitor query defining the alert condition94- `message`: Notification message with @mentions95- `tags`: Array of tag strings96- `thresholds`: Alert threshold values (`critical`, `warning`, `ok`)9798**Pitfalls**:99- Monitor `type` must match the query type; mismatches cause creation failures100- `message` supports @mentions for notifications (e.g., `@slack-channel`, `@pagerduty`)101- Thresholds vary by monitor type; metric monitors need `critical` at minimum102- Muting a monitor suppresses notifications but the monitor still evaluates103- Monitor IDs are numeric integers104105### 4. Manage Dashboards106107**When to use**: User wants to list, view, update, or delete dashboards108109**Tool sequence**:1101. `DATADOG_LIST_DASHBOARDS` - List all dashboards [Required]1112. `DATADOG_GET_DASHBOARD` - Get full dashboard definition [Optional]1123. `DATADOG_UPDATE_DASHBOARD` - Update dashboard layout or widgets [Optional]1134. `DATADOG_DELETE_DASHBOARD` - Remove a dashboard (irreversible) [Optional]114115**Key parameters**:116- `dashboard_id`: Dashboard identifier string117- `title`: Dashboard title118- `layout_type`: 'ordered' (grid) or 'free' (freeform positioning)119- `widgets`: Array of widget definition objects120- `description`: Dashboard description121122**Pitfalls**:123- Dashboard IDs are alphanumeric strings (e.g., 'abc-def-ghi'), not numeric124- `layout_type` cannot be changed after creation; must recreate the dashboard125- Widget definitions are complex nested objects; get existing dashboard first to understand structure126- DELETE is permanent; there is no undo127128### 5. Create Events and Manage Downtimes129130**When to use**: User wants to post events or schedule maintenance downtimes131132**Tool sequence**:1331. `DATADOG_LIST_EVENTS` - List existing events [Optional]1342. `DATADOG_CREATE_EVENT` - Post a new event [Required]1353. `DATADOG_CREATE_DOWNTIME` - Schedule a maintenance downtime [Optional]136137**Key parameters for events**:138- `title`: Event title139- `text`: Event body text (supports markdown)140- `alert_type`: Event severity ('error', 'warning', 'info', 'success')141- `tags`: Array of tag strings142143**Key parameters for downtimes**:144- `scope`: Tag scope for the downtime (e.g., `host:web01`)145- `start`: Start time (Unix epoch)146- `end`: End time (Unix epoch; omit for indefinite)147- `message`: Downtime description148- `monitor_id`: Specific monitor to downtime (optional, omit for scope-based)149150**Pitfalls**:151- Event `text` supports Datadog's markdown format including @mentions152- Downtimes scope uses tag syntax: `host:web01`, `env:staging`153- Omitting `end` creates an indefinite downtime; always set an end time for maintenance154- Downtime `monitor_id` narrows to a single monitor; scope applies to all matching monitors155156### 6. Manage Hosts and Traces157158**When to use**: User wants to list infrastructure hosts or inspect distributed traces159160**Tool sequence**:1611. `DATADOG_LIST_HOSTS` - List all reporting hosts [Required]1622. `DATADOG_GET_TRACE_BY_ID` - Get a specific distributed trace [Optional]163164**Key parameters**:165- `filter`: Host search filter string166- `sort_field`: Sort hosts by field (e.g., 'name', 'apps', 'cpu')167- `sort_dir`: Sort direction ('asc' or 'desc')168- `trace_id`: Distributed trace ID for trace lookup169170**Pitfalls**:171- Host list includes all hosts reporting to Datadog within the retention window172- Trace IDs are long numeric strings; ensure exact match173- Hosts that stop reporting are retained for a configured period before removal174175## Common Patterns176177### Monitor Query Syntax178179**Metric alerts**:180```181avg(last_5m):avg:system.cpu.user{env:prod} > 90182```183184**Log alerts**:185```186logs("service:web status:error").index("main").rollup("count").last("5m") > 10187```188189### Tag Filtering190191- Tags use `key:value` format: `host:web01`, `env:prod`, `service:api`192- Multiple tags: `{host:web01,env:prod}` (AND logic)193- Wildcard: `host:web*`194195### Pagination196197- Use `page` and `page_size` or offset-based pagination depending on endpoint198- Check response for total count to determine if more pages exist199- Continue until all results are retrieved200201## Known Pitfalls202203**Timestamps**:204- Most endpoints use Unix epoch seconds (not milliseconds)205- Some endpoints accept ISO 8601; check tool schema206- Time ranges should be reasonable (not years of data)207208**Query Syntax**:209- Metric queries: `aggregation:metric{tags}`210- Log queries: `field:value` pairs211- Monitor queries vary by type; check Datadog documentation212213**Rate Limits**:214- Datadog API has per-endpoint rate limits215- Implement backoff on 429 responses216- Batch operations where possible217218## Quick Reference219220| Task | Tool Slug | Key Params |221|------|-----------|------------|222| Query metrics | DATADOG_QUERY_METRICS | query, from, to |223| List metrics | DATADOG_LIST_METRICS | q |224| Search logs | DATADOG_SEARCH_LOGS | query, from, to, limit |225| List log indexes | DATADOG_LIST_LOG_INDEXES | (none) |226| List monitors | DATADOG_LIST_MONITORS | tags |227| Get monitor | DATADOG_GET_MONITOR | monitor_id |228| Create monitor | DATADOG_CREATE_MONITOR | name, type, query, message |229| Update monitor | DATADOG_UPDATE_MONITOR | monitor_id |230| Mute monitor | DATADOG_MUTE_MONITOR | monitor_id |231| Unmute monitor | DATADOG_UNMUTE_MONITOR | monitor_id |232| List dashboards | DATADOG_LIST_DASHBOARDS | (none) |233| Get dashboard | DATADOG_GET_DASHBOARD | dashboard_id |234| Update dashboard | DATADOG_UPDATE_DASHBOARD | dashboard_id, title, widgets |235| Delete dashboard | DATADOG_DELETE_DASHBOARD | dashboard_id |236| List events | DATADOG_LIST_EVENTS | start, end |237| Create event | DATADOG_CREATE_EVENT | title, text, alert_type |238| Create downtime | DATADOG_CREATE_DOWNTIME | scope, start, end |239| List hosts | DATADOG_LIST_HOSTS | filter, sort_field |240| Get trace | DATADOG_GET_TRACE_BY_ID | trace_id |241242## When to Use243This skill is applicable to execute the workflow or actions described in the overview.244245## Limitations246- Use this skill only when the task clearly matches the scope described above.247- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.248- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.249250---251252**Source:** [`sickn33/agentic-awesome-skills`](https://github.com/sickn33/agentic-awesome-skills) → `skills/datadog-automation/SKILL.md`253254**Also appears in:** `sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills/skills/datadog-automation/SKILL.md`, `sickn33/agentic-awesome-skills/plugins/agentic-awesome-skills-claude/skills/datadog-automation/SKILL.md`