create_alert_monitor
Create Datadog monitors to alert on metrics, logs, or APM data. Set up notifications for issues and track SLAs with customizable queries.
Instructions
Create a new monitor to alert on metrics, logs, or APM data.
Use this when: user wants to get notified about issues, set up alerting, or monitor SLAs. Consider validate_monitor first to check the query syntax before creating.
Query examples:
Metric: "avg(last_5m):avg:system.cpu.user{*} > 80"
Log: 'logs("status:error").index("*").rollup("count").last("5m") > 100'
APM: "avg(last_10m):trace.web.request{service:api}.errors.rate > 5"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Monitor name (descriptive) | |
| tags | No | Optional tags (e.g. ["team:backend", "severity:high"]) | |
| query | Yes | Alert query (examples above) | |
| message | Yes | Notification text with @mentions (e.g. "@slack-alerts CPU high!") | |
| options | No | Advanced settings (thresholds, evaluation_delay, notify_no_data, etc.) | |
| priority | No | 1-5 (1=P1/highest, 5=P5/lowest) | |
| monitor_type | Yes | One of "metric alert", "service check", "event alert", "query alert", "composite", "log alert", "rum alert", "trace-analytics alert" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||