Fetch Metrics
curl --request GET \
--url https://api.app.shinzo.ai/telemetry/fetch_metrics \
--header 'Authorization: Bearer <token>'Telemetry
Fetch Metrics
Get metrics data with optional filtering.
GET
/
telemetry
/
fetch_metrics
Fetch Metrics
curl --request GET \
--url https://api.app.shinzo.ai/telemetry/fetch_metrics \
--header 'Authorization: Bearer <token>'Authentication
Requires JWT token authentication.Authorization: Bearer <jwt_token>
Query Parameters
string
Filter by start date (ISO 8601)
string
Filter by end date (ISO 8601)
string
Filter by resource ID
string
Filter by service name
string
Filter by metric name
number
Max results to return
number
Pagination offset
Example Request
curl -X GET "https://api.app.shinzo.ai/telemetry/fetch_metrics?service_name=my-mcp-server" \
-H "Authorization: Bearer <jwt_token>"
Response
{
"metrics": [
{
"metric_name": "mcp.tool.invocations",
"service_name": "my-mcp-server",
"description": "Number of tool invocations",
"unit": "1",
"data_points": [
{
"timestamp": "2025-01-20T14:00:00Z",
"value": 42,
"attributes": {
"mcp.tool.name": "search_files"
}
}
]
}
],
"pagination": {
"total": 10,
"limit": 50,
"offset": 0
}
}
Status Codes
| Code | Description |
|---|---|
200 | Success |
400 | Invalid query parameters |
401 | Invalid or missing token |

