query_metrics
Retrieve Datadog metrics for a specified time range, returning aggregated time-series data to analyze performance trends.
Instructions
Query Datadog metrics data for a specified time range. Returns time-series data with values aggregated over the specified period.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End time as Unix timestamp in seconds or ISO 8601 string (must be after 'from') | |
| from | Yes | Start time as Unix timestamp in seconds or ISO 8601 string (e.g., 1609459200 or '2021-01-01T00:00:00Z') | |
| filter | No | Optional filter expression to scope the metric (e.g., 'host:web-1', 'env:prod') | |
| metricName | Yes | Metric name to query (e.g., "system.cpu.user", "avg:system.memory.free") |