query-metrics
Query Datadog time-series metrics using custom expressions. Retrieve data points with timestamps to analyze performance trends over specified time ranges.
Instructions
Query time-series metric data from Datadog. The backbone of observability — use for 'CPU usage over last hour', 'request rate for web service', or any metric query. Query syntax: 'avg:system.cpu.user{host:web-1}'. Returns data points with timestamps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Metrics query (e.g., 'avg:system.cpu.user{host:web-1}') | |
| from | Yes | Start time as Unix epoch seconds | |
| to | Yes | End time as Unix epoch seconds |