cURL
curl --request GET \ --url https://api.app.shinzo.ai/telemetry/fetch_metrics \ --header 'Authorization: Bearer <token>'
Get metrics data with optional filtering.
Authorization: Bearer <jwt_token>
curl -X GET "https://api.app.shinzo.ai/telemetry/fetch_metrics?service_name=my-mcp-server" \ -H "Authorization: Bearer <jwt_token>"
{ "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 } }
200
400
401