compile_datadog_to_metricsql
Compile Datadog metric or monitor queries into VictoriaMetrics MetricsQL, flagging proprietary ML and log functions with explicit red-flag markers to prevent silent drops.
Instructions
AST-compile Datadog metric or monitor queries into VictoriaMetrics MetricsQL with zero silent drops: proprietary ML/log functions (anomalies, forecast, outliers, logs, events) are explicitly flagged with [RED FLAG] quarantine markers. Supports single query or bulk monitors.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "compile_datadog_to_metricsql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Single Datadog metric or monitor query (e.g. 'avg(last_5m):avg:system.cpu.user{env:prod,!host:canary*} by {service} > 85'). | |
| monitors | No | Optional bulk list of Datadog monitor JSON objects ({id, name, type, query}) to compile into vmalert YAML. | |
| default_window | No | Default range window for .as_rate() and .as_count() modifiers. | 1m |
| sanitize_metric_names | No | Convert dots in metric names to underscores. |