Query Workspace Metrics
queryWorkspaceMetricsRuns a PromQL query at one instant across all workspace apps or filtered by env and region, returning the store's response unchanged for metric analysis.
Instructions
Runs a PromQL query at one instant across the metrics of every app in the workspace, or only those in env and region, and returns Prometheus's answer unchanged. Group by namespace to tell the apps apart. 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>",
"query": "<query>"
},
"name": "queryWorkspaceMetrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Only the apps in this env; every env when absent | |
| time | No | When to evaluate the query, as Unix seconds or RFC 3339; now when absent | |
| query | Yes | A PromQL expression | |
| region | No | Only the apps in this region; every region when absent | |
| workspaceSlug | Yes |