Metrics Dashboard
The Metrics Dashboard provides comprehensive real-time analytics for understanding simulation performance, system efficiency, and customer experience.Overview
The dashboard displays four primary metric categories:Wait Time Analysis
Average and distribution of customer waiting times
Queue Length
Number of customers waiting over time
Throughput
Customers served per time unit
Saturation
Teller utilization and system capacity usage
Dashboard Architecture
Wait Time Metrics
Definition
Wait time = Time from customer arrival until service startscustomer.py:22:
Calculation
Wait Time by Priority
WaitTimeChart Component
- High priority: Near-zero wait (often served immediately)
- Medium priority: Moderate wait
- Low priority: Longest wait (especially during high load)
Queue Length Metrics
Definition
Queue length = Number of customers inwaiting_queue at any time
Time Series Tracking
QueueLengthChart Component
- Stable system: Queue length oscillates around a constant
- Unstable system: Queue length grows unbounded (ρ ≥ 1)
- Underutilized: Queue frequently zero
Throughput Metrics
Definition
Throughput = Number of customers served per unit timeInstantaneous vs. Cumulative
- Instantaneous Throughput
- Cumulative Throughput
Customers served in recent time window:
Theoretical Maximum Throughput
ThroughputChart Component
Saturation Metrics
Definition
Saturation (or utilization) = Percentage of time resources are busyPer-Teller Utilization
Fromteller.py:19:
System-Wide Utilization
SaturationReport Component
Utilization Interpretation
| Utilization | Interpretation | Action |
|---|---|---|
| < 50% | Underutilized | Consider reducing tellers |
| 50-70% | Healthy | Optimal balance |
| 70-85% | High | Monitor closely |
| 85-95% | Very high | Long queues likely |
| > 95% | Saturated | Add more tellers |
| 100% | Maxed out | System unstable |
API Endpoints
Fetching Metrics
Real-Time Updates
Polling Strategy
Performance Indicators
Key Performance Indicators (KPIs)
Average Wait Time
Target: < 2 minutes (120 seconds)Critical: > 5 minutes (300 seconds)
Queue Length
Target: < 5 customersCritical: > 20 customers
Throughput
Target: > 80% of theoretical maxCritical: < 50% of theoretical max
Saturation
Target: 60-80%Critical: > 95% or < 30%
Alert Thresholds
Export and Reporting
CSV Export
Further Reading
Interpreting Metrics
Detailed guide to understanding metric patterns
Queue Visualization
Visual representation of queue dynamics
Simulation Engine
How metrics are calculated from simulation state
Advanced Scenarios
Using metrics to optimize configurations