diff options
| author | bndw <ben@bdw.to> | 2026-02-14 12:17:33 -0800 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-02-14 12:17:33 -0800 |
| commit | 865b3da22881a1046c15e99bdd5fbc64aa374b73 (patch) | |
| tree | b82401b650780df42eebe778f9ae16512afab281 /internal/ratelimit/ratelimit_test.go | |
| parent | ea4f508f5ee91b370c6912cde26b1a432380d037 (diff) | |
feat: add metrics dashboard HTML page
Add a real-time metrics dashboard accessible at the metrics server root.
The dashboard displays relay statistics in a human-readable format with
auto-refresh every 5 seconds.
Features:
- Active connections and subscriptions
- Request counts (total, success, errors)
- Authentication stats (success/failure)
- Rate limiting hits
- Storage metrics (events, DB size, deletions)
- Clean, dark-themed UI with gradient accents
- Auto-refresh and live uptime counter
The dashboard is embedded using go:embed and served at / while
Prometheus metrics continue to be available at /metrics.
Example: http://localhost:9090/ for dashboard
http://localhost:9090/metrics for raw metrics
Diffstat (limited to 'internal/ratelimit/ratelimit_test.go')
0 files changed, 0 insertions, 0 deletions
