Comprehensive guide to using the Analytics feature in Open WebUI
📑 Table of contents
- Overview
- Accessing the dashboard
- Dashboard features
- Token usage tracking
- Use cases
- API endpoints
- Frequently asked questions
🎯 Overview
The Analytics Dashboard in Open WebUI gives administrators comprehensive insight into usage patterns, token consumption, and model performance across their instance.
💡 Tip: This tool is only available to users with the admin role. It helps you make data driven decisions and manage resources optimally.
What can you do with the Analytics Dashboard?
📈 Track message volume across different models and time periods
🔢 Track token usage for cost estimation and resource planning
👥 Understand user activity and analyze engagement patterns
📊 View time series data showing trends over hours, days, or months
🎯 Use grouped views for departmental level reporting
🔑 Accessing the dashboard
Step by step guide:
Log in with an admin account
Click your profile icon and select Admin Panel
Click the Analytics tab in the admin navigation
✅ Success: You now see the Analytics Dashboard with all available data and visualizations.
⚙️ Dashboard features
Time period selection
In the top right of the dashboard, you can filter all data by time period:
Last 24 hours: Hourly granularity for real time monitoring
Last 7 days: Daily overview of the past week
Last 30 days: Monthly snapshot
Last 90 days: Quarterly trends
All time: Full historical data
Your selected time period is saved automatically and persists across browser sessions.
Group filter
If you have user groups configured, the Analytics Dashboard allows filtering by group:
Use the group dropdown next to the time period selector
Select a specific group to show analytics only for users in that group
Select "All users" to see instance wide analytics
Useful for:
Department wide reporting
Cost allocation to business units
Monitoring pilot programs
Summary statistics
The dashboard header shows the following key metrics for the selected time period:
| Metric | Description |
|---|---|
| Total messages | Number of assistant responses generated |
| Total tokens | Sum of all input and output tokens processed |
| Total chats | Number of unique conversations |
| Total users | Number of users who sent messages |
📌 Important: Analytics counts assistant responses rather than user messages. This gives a more accurate measure of AI model usage and token consumption.
Message timeline chart
The interactive timeline chart shows message volume over time, broken down by model:
🕐 Hourly or daily granularity, automatically adapts to the selected time period
🎨 Multi model visualization, shows up to 8 models in different colors
💬 Hover tooltips, show exact counts and percentages for each model
📈 Trend detection, quickly identify usage patterns and spikes
Model usage table
A detailed breakdown of each model's usage:
| Column | Description |
|---|---|
| # | Rank by message count |
| Model | Model name with icon |
| Messages | Total number of assistant responses generated |
| Tokens | Total number of tokens consumed (input and output) |
| % | Percentage share of total messages |
User activity table
Tracking of user engagement and token consumption per user:
🗂️ Sortable columns, organize by name or activity level
👤 User identification, profile pictures and display names
📊 Token attribution, see resource consumption per user
Use cases:
Monitor power users and their token consumption
Identify inactive or underused accounts
Plan user quotas or rate limits
Calculate per user costs for billing purposes
🔢 Token usage tracking
What are tokens?
Tokens are the units language models use to process text. Both the input (your prompt) and the output (the model's response) consume tokens. Most AI providers charge based on token usage, which makes token tracking essential for cost management.
How does token tracking work?
Open WebUI automatically captures token usage from model responses and stores it with each message. The Analytics feature aggregates this data to show:
💬 Input tokens: tokens in user prompts and context
💡 Output tokens: tokens in model responses
📊 Total tokens: sum of input and output
Cost calculation
To estimate costs, multiply the token count by your provider's prices:
Kosten = (input_tokens × input_preis) + (output_tokens × output_preis)
Example for GPT-4:
Input: 1,000,000 tokens × $0.03/1K = $30
Output: 500,000 tokens × $0.06/1K = $30
Total: $60
💼 Use cases
1. Resource planning
Scenario: You run Open WebUI for a team and need to plan infrastructure capacity.
How Analytics helps:
View the message timeline to identify peak load times
Check model usage to see which models need more resources
Monitor token usage to estimate future costs
Track user activity to plan team growth
2. Model evaluation
Scenario: You've deployed multiple models and want to know which your users prefer.
How Analytics helps:
Compare message counts across models to see adoption rates
Check token efficiency to identify verbose models
Monitor trends in the timeline after introducing new models
3. Cost management
Scenario: You use paid API providers and need to control costs.
How Analytics helps:
Track total token count by model and user
Identify heavy users for quota discussions
Compare token costs across different model providers
Run regular reviews with time period filters
4. User engagement
Scenario: You want to understand how your team uses AI tools.
How Analytics helps:
Monitor active users vs. registered accounts
Identify power users who may need support
Track adoption trends over time
Correlate usage with team initiatives or training sessions
5. Compliance & auditing
Scenario: Your organization requires usage reports for compliance.
How Analytics helps:
Generate activity reports for specific time periods
Track user attribution for all AI interactions
Monitor model usage for approved vs. unapproved models
Export data via API for external reporting tools
🔌 API endpoints
For advanced users and integrations, Analytics offers REST API endpoints:
Dashboard endpoints:
GET /api/v1/analytics/summary
GET /api/v1/analytics/models
GET /api/v1/analytics/users
GET /api/v1/analytics/messages
GET /api/v1/analytics/daily
GET /api/v1/analytics/tokens
Model detail endpoints:
GET /api/v1/analytics/models/{model_id}/chats # Chats, die dieses Modell verwenden
GET /api/v1/analytics/models/{model_id}/overview # Feedback-Verlauf und Tags abrufen
Common query parameters:
| Parameter | Type | Description |
|---|---|---|
start_date | int | Unix timestamp (epoch seconds), start of the range |
end_date | int | Unix timestamp (epoch seconds), end of the range |
group_id | string | Filter to a specific user group (optional) |
API access
All Analytics endpoints require admin authentication. Include your admin bearer token:
curl -H "Authorization: Bearer YOUR_ADMIN_TOKEN" \
"https://client.nenna.ai/api/v1/analytics/summary?group_id=abc123"
❓ Frequently asked questions
❓ Why does the message count differ from what I expected?
Answer: Analytics counts assistant responses rather than user messages. If a chat has 10 user messages and 10 assistant responses, the count is 10. This gives a more accurate measure of AI usage and token consumption.
Missing token data appears as 0 in Analytics.
❓ Can I export Analytics data?
Answer: Yes, via the API endpoints. Use tools like curl, Python scripts, or BI tools to retrieve and export data:
curl -H "Authorization: Bearer TOKEN" \
"https://client.nenna.ai/api/v1/analytics/summary?start_date=1704067200&end_date=1706745600" \
analytics_export.json❓ What data is tracked?
Answer, tracked:
✅ Message timestamps and count
✅ Token usage per message
✅ Model IDs and user IDs
✅ Chat IDs and message relationships
Not tracked:
❌ Message content display in the dashboard (metadata only)
❌ External sharing or exports
❌ Individual message content outside the database
