Skip to main content
The Analytics page provides insights into your LLM usage, costs, and performance.

Overview Dashboard

The main dashboard shows key metrics at a glance:
  • Total Requests - Request count for the period
  • Total Cost - Spending for the period
  • Total Tokens - Input + output tokens
  • Average Latency - Mean response time
  • Error Rate - Percentage of failed requests

Time Range

Select the time period for analytics:
  • Last hour
  • Last 24 hours
  • Last 7 days
  • Last 30 days
  • Custom range

Charts

Requests Over Time

Line chart showing request volume over the selected period. Useful for:
  • Identifying usage patterns
  • Spotting traffic spikes
  • Correlating with deployments

Cost Over Time

Track spending trends:
  • Daily/hourly cost breakdown
  • Cumulative cost
  • Compare to previous period

Latency Distribution

Histogram showing response time distribution:
  • p50 (median)
  • p90
  • p95
  • p99

Token Usage

Breakdown of token consumption:
  • Input tokens
  • Output tokens
  • By model
  • Over time

Breakdowns

By Model

See which models you’re using most:
ModelRequestsTokensCost
gpt-4o45%60%75%
gpt-4o-mini40%25%10%
claude-3-5-sonnet15%15%15%

By Provider

Aggregate by LLM provider:
  • OpenAI
  • Anthropic
  • Google

By Metadata

If you include custom metadata, view breakdowns by:
  • User ID
  • Feature
  • Environment
  • Any custom field

Alerts

Set up alerts based on analytics:
  1. Go to SettingsAlerts
  2. Click Add Alert
  3. Choose condition:
    • Error rate > X%
    • Latency p95 > Xms
    • Daily cost > $X
    • Request rate > X/min
  4. Select notification channel
  5. Save

Comparing Periods

Compare current metrics to a previous period:
  1. Select current time range
  2. Toggle Compare
  3. View percentage changes

Exporting Data

Export analytics data:
  1. Select time range and filters
  2. Click Export
  3. Choose format (CSV, JSON)
  4. Download

API Access

Access analytics programmatically:
curl https://api.muxx.dev/v1/analytics \
  -H "Authorization: Bearer muxx_sk_live_xxxxxxxxxxxx" \
  -G \
  -d "start_date=2024-01-01" \
  -d "end_date=2024-01-31" \
  -d "group_by=model"
See API Reference for details.