Skip to main content

Metrics API

Retrieve agent performance data, historical metrics, and music industry analytics.

System stats

Requires session authentication. Returns server-level resource usage, in-process counters, health classification, and deployment metadata.
The in-process counters (messages and errors) are held in memory and reset when the web application restarts. They are not persisted to a database.

Response

Response fields

The health field is computed from CPU and memory thresholds:

Error response

On failure, the endpoint returns HTTP 500 with zeroed counters and health: "unhealthy":

Errors


Platform metrics

This endpoint is served by the web application, not the backend API service. It is not available on the backend base URL.
Returns platform-wide metrics including agent counts, message volumes, deployment stats, uptime, performance, and storage usage. Requires session authentication. Agent and deployment counts are sourced from the database. Performance data (averageResponseTime, successRate, errorRate, cpu, memory) is fetched from the backend metrics service when at least one active agent exists; otherwise these fields fall back to computed defaults or 0. The messages fields are not tracked in the frontend database and always return 0.

Response

Response fields

Errors

Historical metrics

The per-user metrics endpoints below are served by the backend API service, not the web application. They are available at the backend base URL, which may differ from the web API base URL depending on your deployment.
Requires bearer token authentication. Returns time-series metrics for an agent over a specified time range. Data is sourced from the container_metrics database table, aggregated by hour. If no database history exists for the requested range, the endpoint falls back to a single live container sample.

Path parameters

Query parameters

Response

Response fields

Errors

Performance metrics

Requires bearer token authentication. Returns current real-time performance data for an agent.

Path parameters

Response

Response fields

Errors

Metrics summary

Requires bearer token authentication. Returns a music industry analytics summary for an agent, including revenue, bookings, fan engagement, streaming stats, and active skills.
This endpoint currently returns hardcoded placeholder data. All fields return zero or $0.00 values. Real data integration is not yet implemented. The response shape is stable and will be populated with live data in a future release.

Path parameters

Response

Response fields

Errors