query_metrics
Retrieve Datadog timeseries metrics and get avg, min, max, and latest stats per series. Set time ranges and filters to analyze trends.
Instructions
Query Datadog timeseries metrics. Returns summary statistics (avg, min, max, latest) per series.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End time: relative or ISO 8601 or 'now' | now |
| from | No | Start time: relative (15m, 1h, 1d) or ISO 8601 | 1h |
| query | Yes | Datadog metric query. E.g. 'avg:system.cpu.user{env:prod} by {host}' |