datadog_metrics_query
Query Datadog metrics timeseries data by specifying a query string and time window. Returns YAML output with status, date range, and series.
Instructions
Execute a point-in-time Datadog metrics timeseries query. Mirrors omni-dev datadog metrics query. Returns YAML matching the CLI -o yaml output (status, from_date, to_date, series).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Start of the query window. Accepts relative shorthand (`15m`, `1h`, `7d`), the literal `now`, an RFC 3339 timestamp with timezone, or Unix epoch seconds. | |
| query | Yes | Datadog query string (e.g. `avg:system.cpu.user{*}`). | |
| to | No | End of the query window. Defaults to `now` when omitted. |