Endpoints
Global Metrics
Tenant-Specific Metrics
Capacity Debug Metrics
Authentication
These endpoints require admin authentication using therequire_admin security dependency.
Admin authentication token configured in your environment settings
Path Parameters
Unique identifier for the tenant (only for tenant-specific endpoint)
Response
Returns a JSON object with real-time metrics tracked by theLiveMetricsStore.
Number of calls currently active (started but not yet ended)
Total number of calls accepted since server start
Number of calls rejected due to insufficient capacity (max concurrent calls reached)
Number of calls rejected because the tenant is not configured in the system
Number of calls rejected because instructions could not be found for the tenant
Number of database errors encountered while fetching instructions
Number of times fallback instructions were used instead of tenant-specific instructions
Total number of calls that have started processing
Total number of calls that have ended (completed, hung up, or errored)
Number of calls that ended with an error
Number of calls that were referred (transferred) to another destination
Total minutes of call audio processed by the system
Example Request
Global Metrics
Tenant Metrics
Example Response
Metrics Response
Capacity Debug Response
Metrics Interpretation
Call Flow Metrics
- Accepted → Started → Ended: Normal call flow progression
- High rejected_calls_capacity: Consider increasing
max_concurrent_callssetting - High rejected_calls_tenant_not_configured: Tenants attempting calls without proper setup
- High rejected_calls_instructions_missing: Instructions not properly configured in database
Quality Metrics
- failed_calls / ended_calls: Error rate percentage
- fallback_instructions_used: How often the system falls back to default instructions
- instructions_db_errors: Database connectivity or query issues
Capacity Metrics
- active_calls: Current load on the system
- minutes_processed: Total processing volume
Use Cases
- Real-time Monitoring: Track system performance and call processing status
- Capacity Planning: Analyze rejection rates to determine if capacity needs adjustment
- Tenant Health: Monitor per-tenant metrics to identify configuration issues
- SLA Tracking: Calculate success rates and error rates for service level agreements
- Billing: Use
minutes_processedfor usage-based billing
Related Endpoints
- GET /api/v1/calls - List active call sessions
- GET /api/v1/health - Basic health check