diff options
| author | bndw <ben@bdw.to> | 2026-02-14 12:53:50 -0800 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-02-14 12:53:50 -0800 |
| commit | 75fb3a583cf4e8a7ca34bedb3322d309bb170ed4 (patch) | |
| tree | 175a9cd032779ee4f448a2fa931eeaef0c0f283a /internal/auth/README.md | |
| parent | 40df56985402a31695a9a3bb13319bd2a3276305 (diff) | |
feat: add storage stats and average latency metrics
Track and display storage and performance metrics that were previously
showing zeros.
Storage metrics:
- Add GetStats() method to storage returning event count and DB size
- Store database file path for size calculation
- Update metrics every 30 seconds via goroutine in main.go
- Display event count and DB size (MB) in dashboard
Performance metrics:
- Calculate average latency from histogram sum/count metrics
- Display as milliseconds in dashboard
- Formula: (duration_sum / duration_count) * 1000
Missing metrics (deferred):
- Connections: requires connection lifecycle tracking (gRPC + WebSocket)
- Deletions: count would need API change to ProcessDeletion
Dashboard now shows accurate storage stats and request latency!
Diffstat (limited to 'internal/auth/README.md')
0 files changed, 0 insertions, 0 deletions
