[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-c27c61c5-783f-4dc9-a9b9-9d5a85e7543e":3,"$f-xww0B8fQxcqxLiwEH2Pk2mWj6ISmlXySAsDF19V7a8":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"c27c61c5-783f-4dc9-a9b9-9d5a85e7543e","datadog-automation","通过Rube MCP（Composio）自动化Datadog任务：查询指标、搜索日志、管理监控\u002F仪表板、创建事件和停机时间。始终首先搜索工具以获取当前模式。","cat_prod_automation","mod_productivity","sickn33,productivity","---\nname: datadog-automation\ndescription: \"Automate Datadog tasks via Rube MCP (Composio): query metrics, search logs, manage monitors\u002Fdashboards, create events and downtimes. Always search tools first for current schemas.\"\nrisk: critical\nsource: community\ndate_added: \"2026-02-27\"\n---\n\n# Datadog Automation via Rube MCP\n\nAutomate Datadog monitoring and observability operations through Composio's Datadog toolkit via Rube MCP.\n\n## Prerequisites\n\n- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)\n- Active Datadog connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `datadog`\n- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas\n\n## Setup\n\n**Get Rube MCP**: Add `https:\u002F\u002Frube.app\u002Fmcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.\n\n\n1. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds\n2. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `datadog`\n3. If connection is not ACTIVE, follow the returned auth link to complete Datadog authentication\n4. Confirm connection status shows ACTIVE before running any workflows\n\n## Core Workflows\n\n### 1. Query and Explore Metrics\n\n**When to use**: User wants to query metric data or list available metrics\n\n**Tool sequence**:\n1. `DATADOG_LIST_METRICS` - List available metric names [Optional]\n2. `DATADOG_QUERY_METRICS` - Query metric time series data [Required]\n\n**Key parameters**:\n- `query`: Datadog metric query string (e.g., `avg:system.cpu.user{host:web01}`)\n- `from`: Start timestamp (Unix epoch seconds)\n- `to`: End timestamp (Unix epoch seconds)\n- `q`: Search string for listing metrics\n\n**Pitfalls**:\n- Query syntax follows Datadog's metric query format: `aggregation:metric_name{tag_filters}`\n- `from` and `to` are Unix epoch timestamps in seconds, not milliseconds\n- Valid aggregations: `avg`, `sum`, `min`, `max`, `count`\n- Tag filters use curly braces: `{host:web01,env:prod}`\n- Time range should not exceed Datadog's retention limits for the metric type\n\n### 2. Search and Analyze Logs\n\n**When to use**: User wants to search log entries or list log indexes\n\n**Tool sequence**:\n1. `DATADOG_LIST_LOG_INDEXES` - List available log indexes [Optional]\n2. `DATADOG_SEARCH_LOGS` - Search logs with query and filters [Required]\n\n**Key parameters**:\n- `query`: Log search query using Datadog log query syntax\n- `from`: Start time (ISO 8601 or Unix timestamp)\n- `to`: End time (ISO 8601 or Unix timestamp)\n- `sort`: Sort order ('asc' or 'desc')\n- `limit`: Number of log entries to return\n\n**Pitfalls**:\n- Log queries use Datadog's log search syntax: `service:web status:error`\n- Search is limited to retained logs within the configured retention period\n- Large result sets require pagination; check for cursor\u002Fpage tokens\n- Log indexes control routing and retention; filter by index if known\n\n### 3. Manage Monitors\n\n**When to use**: User wants to create, update, mute, or inspect monitors\n\n**Tool sequence**:\n1. `DATADOG_LIST_MONITORS` - List all monitors with filters [Required]\n2. `DATADOG_GET_MONITOR` - Get specific monitor details [Optional]\n3. `DATADOG_CREATE_MONITOR` - Create a new monitor [Optional]\n4. `DATADOG_UPDATE_MONITOR` - Update monitor configuration [Optional]\n5. `DATADOG_MUTE_MONITOR` - Silence a monitor temporarily [Optional]\n6. `DATADOG_UNMUTE_MONITOR` - Re-enable a muted monitor [Optional]\n\n**Key parameters**:\n- `monitor_id`: Numeric monitor ID\n- `name`: Monitor display name\n- `type`: Monitor type ('metric alert', 'service check', 'log alert', 'query alert', etc.)\n- `query`: Monitor query defining the alert condition\n- `message`: Notification message with @mentions\n- `tags`: Array of tag strings\n- `thresholds`: Alert threshold values (`critical`, `warning`, `ok`)\n\n**Pitfalls**:\n- Monitor `type` must match the query type; mismatches cause creation failures\n- `message` supports @mentions for notifications (e.g., `@slack-channel`, `@pagerduty`)\n- Thresholds vary by monitor type; metric monitors need `critical` at minimum\n- Muting a monitor suppresses notifications but the monitor still evaluates\n- Monitor IDs are numeric integers\n\n### 4. Manage Dashboards\n\n**When to use**: User wants to list, view, update, or delete dashboards\n\n**Tool sequence**:\n1. `DATADOG_LIST_DASHBOARDS` - List all dashboards [Required]\n2. `DATADOG_GET_DASHBOARD` - Get full dashboard definition [Optional]\n3. `DATADOG_UPDATE_DASHBOARD` - Update dashboard layout or widgets [Optional]\n4. `DATADOG_DELETE_DASHBOARD` - Remove a dashboard (irreversible) [Optional]\n\n**Key parameters**:\n- `dashboard_id`: Dashboard identifier string\n- `title`: Dashboard title\n- `layout_type`: 'ordered' (grid) or 'free' (freeform positioning)\n- `widgets`: Array of widget definition objects\n- `description`: Dashboard description\n\n**Pitfalls**:\n- Dashboard IDs are alphanumeric strings (e.g., 'abc-def-ghi'), not numeric\n- `layout_type` cannot be changed after creation; must recreate the dashboard\n- Widget definitions are complex nested objects; get existing dashboard first to understand structure\n- DELETE is permanent; there is no undo\n\n### 5. Create Events and Manage Downtimes\n\n**When to use**: User wants to post events or schedule maintenance downtimes\n\n**Tool sequence**:\n1. `DATADOG_LIST_EVENTS` - List existing events [Optional]\n2. `DATADOG_CREATE_EVENT` - Post a new event [Required]\n3. `DATADOG_CREATE_DOWNTIME` - Schedule a maintenance downtime [Optional]\n\n**Key parameters for events**:\n- `title`: Event title\n- `text`: Event body text (supports markdown)\n- `alert_type`: Event severity ('error', 'warning', 'info', 'success')\n- `tags`: Array of tag strings\n\n**Key parameters for downtimes**:\n- `scope`: Tag scope for the downtime (e.g., `host:web01`)\n- `start`: Start time (Unix epoch)\n- `end`: End time (Unix epoch; omit for indefinite)\n- `message`: Downtime description\n- `monitor_id`: Specific monitor to downtime (optional, omit for scope-based)\n\n**Pitfalls**:\n- Event `text` supports Datadog's markdown format including @mentions\n- Downtimes scope uses tag syntax: `host:web01`, `env:staging`\n- Omitting `end` creates an indefinite downtime; always set an end time for maintenance\n- Downtime `monitor_id` narrows to a single monitor; scope applies to all matching monitors\n\n### 6. Manage Hosts and Traces\n\n**When to use**: User wants to list infrastructure hosts or inspect distributed traces\n\n**Tool sequence**:\n1. `DATADOG_LIST_HOSTS` - List all reporting hosts [Required]\n2. `DATADOG_GET_TRACE_BY_ID` - Get a specific distributed trace [Optional]\n\n**Key parameters**:\n- `filter`: Host search filter string\n- `sort_field`: Sort hosts by field (e.g., 'name', 'apps', 'cpu')\n- `sort_dir`: Sort direction ('asc' or 'desc')\n- `trace_id`: Distributed trace ID for trace lookup\n\n**Pitfalls**:\n- Host list includes all hosts reporting to Datadog within the retention window\n- Trace IDs are long numeric strings; ensure exact match\n- Hosts that stop reporting are retained for a configured period before removal\n\n## Common Patterns\n\n### Monitor Query Syntax\n\n**Metric alerts**:\n```\navg(last_5m):avg:system.cpu.user{env:prod} > 90\n```\n\n**Log alerts**:\n```\nlogs(\"service:web status:error\").index(\"main\").rollup(\"count\").last(\"5m\") > 10\n```\n\n### Tag Filtering\n\n- Tags use `key:value` format: `host:web01`, `env:prod`, `service:api`\n- Multiple tags: `{host:web01,env:prod}` (AND logic)\n- Wildcard: `host:web*`\n\n### Pagination\n\n- Use `page` and `page_size` or offset-based pagination depending on endpoint\n- Check response for total count to determine if more pages exist\n- Continue until all results are retrieved\n\n## Known Pitfalls\n\n**Timestamps**:\n- Most endpoints use Unix epoch seconds (not milliseconds)\n- Some endpoints accept ISO 8601; check tool schema\n- Time ranges should be reasonable (not years of data)\n\n**Query Syntax**:\n- Metric queries: `aggregation:metric{tags}`\n- Log queries: `field:value` pairs\n- Monitor queries vary by type; check Datadog documentation\n\n**Rate Limits**:\n- Datadog API has per-endpoint rate limits\n- Implement backoff on 429 responses\n- Batch operations where possible\n\n## Quick Reference\n\n| Task | Tool Slug | Key Params |\n|------|-----------|------------|\n| Query metrics | DATADOG_QUERY_METRICS | query, from, to |\n| List metrics | DATADOG_LIST_METRICS | q |\n| Search logs | DATADOG_SEARCH_LOGS | query, from, to, limit |\n| List log indexes | DATADOG_LIST_LOG_INDEXES | (none) |\n| List monitors | DATADOG_LIST_MONITORS | tags |\n| Get monitor | DATADOG_GET_MONITOR | monitor_id |\n| Create monitor | DATADOG_CREATE_MONITOR | name, type, query, message |\n| Update monitor | DATADOG_UPDATE_MONITOR | monitor_id |\n| Mute monitor | DATADOG_MUTE_MONITOR | monitor_id |\n| Unmute monitor | DATADOG_UNMUTE_MONITOR | monitor_id |\n| List dashboards | DATADOG_LIST_DASHBOARDS | (none) |\n| Get dashboard | DATADOG_GET_DASHBOARD | dashboard_id |\n| Update dashboard | DATADOG_UPDATE_DASHBOARD | dashboard_id, title, widgets |\n| Delete dashboard | DATADOG_DELETE_DASHBOARD | dashboard_id |\n| List events | DATADOG_LIST_EVENTS | start, end |\n| Create event | DATADOG_CREATE_EVENT | title, text, alert_type |\n| Create downtime | DATADOG_CREATE_DOWNTIME | scope, start, end |\n| List hosts | DATADOG_LIST_HOSTS | filter, sort_field |\n| Get trace | DATADOG_GET_TRACE_BY_ID | trace_id |\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,196,758,"2026-05-16 13:14:24",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"效率工具","productivity","mdi-lightning-bolt-outline","文档处理、数据分析、自动化工作流",4,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"自动化","automation","mdi-robot-outline","工作流自动化、批处理",3,101,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"75610122-0f1c-4b08-93eb-e7d1681b4e79","1.0.0","datadog-automation.zip",3824,"uploads\u002Fskills\u002Fc27c61c5-783f-4dc9-a9b9-9d5a85e7543e\u002Fdatadog-automation.zip","c9b81196fa48ce08dc5a1f8573b4555c17fff02497203320075c056874462a56","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":9678}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]