Skip to main content
Search

# Mastra Metrics API

1 related articles

Subscribe to updates
  1. mastra.ai

    Mastra opens production metrics as a query API: cost, latency and error rates by model and thread

    Mastra has released a Metrics API that lets developers query token usage, model cost, latency and error rates for production projects through the client SDK, CLI or observability endpoints. Previously these metrics were only viewable in the Mastra platform and Studio, with no way to construct custom queries. Queries can now combine time ranges, status filters and grouping to produce totals, breakdowns, time series and percentile data for custom reports, dashboards, downstream delivery and alerts when cost or error rates rise.

You’re all caught up