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]
- `DATA
1---2name: datadog-automation3description: Datadog Automation via Rube MCP4---567# Datadog Automation via Rube MCP89Automate Datadog monitoring and observability operations through Composio's Datadog toolkit via Rube MCP.1011## Prerequisites1213- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)14- Active Datadog connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `datadog`15- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas1617## Setup1819**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.2021221. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds232. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `datadog`243. If connection is not ACTIVE, follow the returned auth link to complete Datadog authentication254. Confirm connection status shows ACTIVE before running any workflows2627## Core Workflows2829### 1. Query and Explore Metrics3031**When to use**: User wants to query metric data or list available metrics3233**Tool sequence**:341. `DATADOG_LIST_METRICS` - List available metric names [Optional]352. `DATADOG_QUERY_METRICS` - Query metric time series data [Required]3637**Key parameters**:38- `query`: Datadog metric query string (e.g., `avg:system.cpu.user{host:web01}`)39- `from`: Start timestamp (Unix epoch seconds)40- `to`: End timestamp (Unix epoch seconds)41- `q`: Search string for listing metrics4243**Pitfalls**:44- Query syntax follows Datadog's metric query format: `aggregation:metric_name{tag_filters}`45- `from` and `to` are Unix epoch timestamps in seconds, not milliseconds46- Valid aggregations: `avg`, `sum`, `min`, `max`, `count`47- Tag filters use curly braces: `{host:web01,env:prod}`48- Time range should not exceed Datadog's retention limits for the metric type4950### 2. Search and Analyze Logs5152**When to use**: User wants to search log entries or list log indexes5354**Tool sequence**:551. `DATADOG_LIST_LOG_INDEXES` - List available log indexes [Optional]562. `DATADOG_SEARCH_LOGS` - Search logs with query and filters [Required]5758**Key parameters**:59- `query`: Log search query using Datadog log query syntax60- `from`: Start time (ISO 8601 or Unix timestamp)61- `to`: End time (ISO 8601 or Unix timestamp)62- `sort`: Sort order ('asc' or 'desc')63- `limit`: Number of log entries to return6465**Pitfalls**:66- Log queries use Datadog's log search syntax: `service:web status:error`67- Search is limited to retained logs within the configured retention period68- Large result sets require pagination; check for cursor/page tokens69- Log indexes control routing and retention; filter by index if known7071### 3. Manage Monitors7273**When to use**: User wants to create, update, mute, or inspect monitors7475**Tool sequence**:761. `DATADOG_LIST_MONITORS` - List all monitors with filters [Required]772. `DATADOG_GET_MONITOR` - Get specific monitor details [Optional]783. `DATADOG_CREATE_MONITOR` - Create a new monitor [Optional]794. `DATADOG_UPDATE_MONITOR` - Update monitor configuration [Optional]805. `DATADOG_MUTE_MONITOR` - Silence a monitor temporarily [Optional]816. `DATADOG_UNMUTE_MONITOR` - Re-enable a muted monitor [Optional]8283**Key parameters**:84- `monitor_id`: Numeric monitor ID85- `name`: Monitor display name86- `type`: Monitor type ('metric alert', 'service check', 'log alert', 'query alert', etc.)87- `query`: Monitor query defining the alert condition88- `message`: Notification message with @mentions89- `tags`: Array of tag strings90- `thresholds`: Alert threshold values (`critical`, `warning`, `ok`)9192**Pitfalls**:93- Monitor `type` must match the query type; mismatches cause creation failures94- `message` supports @mentions for notifications (e.g., `@slack-channel`, `@pagerduty`)95- Thresholds vary by monitor type; metric monitors need `critical` at minimum96- Muting a monitor suppresses notifications but the monitor still evaluates97- Monitor IDs are numeric integers9899### 4. Manage Dashboards100101**When to use**: User wants to list, view, update, or delete dashboards102103**Tool sequence**:1041. `DATADOG_LIST_DASHBOARDS` - List all dashboards [Required]1052. `DATADOG_GET_DASHBOARD` - Get full dashboard definition [Optional]1063. `DATADOG_UPDATE_DASHBOARD` - Update dashboard layout or widgets [Optional]1074. `DATADOG_DELETE_DASHBOARD` - Remove a dashboard (irreversible) [Optional]108109**Key parameters**:110- `dashboard_id`: Dashboard identifier string111- `title`: Dashboard title112- `layout_type`: 'ordered' (grid) or 'free' (freeform positioning)113- `widgets`: Array of widget definition objects114- `description`: Dashboard description115116**Pitfalls**:117- Dashboard IDs are alphanumeric strings (e.g., 'abc-def-ghi'), not numeric118- `layout_type` cannot be changed after creation; must recreate the dashboard119- Widget definitions are complex nested objects; get existing dashboard first to understand structure120- DELETE is permanent; there is no undo121122### 5. Create Events and Manage Downtimes123124**When to use**: User wants to post events or schedule maintenance downtimes125126**Tool sequence**:1271. `DATADOG_LIST_EVENTS` - List existing events [Optional]1282. `DATA