query-metrics
Query Datadog time-series metrics using any valid metric query syntax, with specified start and end times.
Instructions
Query time-series metric data from Datadog. Supports any Datadog metric query syntax (e.g., avg:system.cpu.user{host:myhost} by {env})
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>",
"from": "<from>",
"to": "<to>"
},
"name": "query-metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Datadog metric query. Example: avg:system.cpu.user{host:myhost} by {env} | |
| from | Yes | Start time as Unix epoch seconds | |
| to | Yes | End time as Unix epoch seconds |