Query App Metrics Range
queryAppMetricsRangeRuns a PromQL query across a time range on an app's own metrics retained for 62 days and returns Prometheus matrix results unchanged for dashboards, alerts, or performance analysis.
Instructions
Runs a PromQL query at every step of a range against the app's own metrics, kept for 62 days, and returns Prometheus's answer unchanged: one matrix series per label set. Only the app's series are visible. The labels and series are queryAppMetrics'. A query the store refuses comes back with the store's own status and error. The path is the store's own, so a Grafana data source can point here too.
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": {
"workspaceSlug": "<workspaceSlug>",
"appSlug": "<appSlug>",
"query": "<query>",
"start": "<start>",
"end": "<end>",
"step": "<step>"
},
"name": "queryAppMetricsRange"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | End of the range, as Unix seconds or RFC 3339 | |
| env | No | ||
| step | Yes | Seconds between points, or a duration such as `5m`; at most 11,000 points per series | |
| query | Yes | A PromQL expression | |
| start | Yes | Start of the range, as Unix seconds or RFC 3339 | |
| region | No | ||
| appSlug | Yes | ||
| workspaceSlug | Yes |