GET /v1/metrics
Query aggregated metrics.Request
Query Parameters
Metric name to query. Available metrics:
llm.requests.totalllm.requests.errorsllm.tokens.inputllm.tokens.outputllm.tokens.totalllm.cost.totalllm.latency_ms
Start of the time range (ISO 8601).
End of the time range (ISO 8601).
Aggregation interval:
1m, 5m, 15m, 1h, 1d.Aggregation function:
sum, avg, min, max, count, p50, p90, p99.Dimension to group by:
model, vendor, environment, project.Filter by model name.
Filter by environment.
Example: Total Requests by Model
Response
Example: P99 Latency
Response
Errors
| Code | Description |
|---|---|
invalid_metric | Unknown metric name |
invalid_interval | Invalid time interval |
invalid_aggregation | Invalid aggregation function |