Skip to content

[Admin Console] : Add cluster-aware /admin/metrics SSE endpoint (Prometheus-backed) #655

Closed

Description

@Ferryx349

Add GET /admin/metrics as an authenticated SSE stream for the admin console.

Metrics are sourced from Prometheus (OTEL -> Collector -> Prometheus).
Scope

  • Authenticated admin-only SSE endpoint (will reuse Phase 1 admin session/auth)
  • Periodic snapshots built from PromQL queries against existing OTEL metrics, e.g.:
    • Events/sec: rate(nostream_events_accepted_total) (& rejected if needed)
    • Accepted / rejected totals (counter values or rates)
    • Active WebSocket connections: nostream_websocket_connections
    • CPU / memory per worker (from nostream_process_* gauges; aggregate or sum by worker_type / worker_index as needed)
  • Include lightweight DB and Redis health in each snapshot
  • Cluster-wide view comes from Prometheus aggregation (worker labels on OTEL resource attrs), not primary -> worker IPC

Depends on

Activity

  1. self-assigned this
    on Jun 27, 2026
  2. changed the title [-][Admin Console] : Add cluster-aware /admin/metrics SSE endpoint[/-] [+][Admin Console] : Add cluster-aware /admin/metrics SSE endpoint (Prometheus-backed)[/+] on Jun 30, 2026
  3. Ferryx349 commented on Jul 10, 2026

    @Ferryx349
    CollaboratorAuthor

    Merged in #662

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions