Pulls mc_router_active_connections + mc_router_server_active_connections
from the Prometheus default registry on every /api/routes call. UI
gains an Active column on the routes table and the header subtitle
shows "N routes · M active conn".
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Same fix as svc-proxy: absolute /api/* hit the server-manager origin
when the UI is reverse-proxied at /infra/mc-router/. Switch to ./api/*
so the requests stay under the proxied prefix.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Adds a separate HTTP server (not the upstream API on :25590) for the
operator dashboard. Single-page UI with two panes:
* routes table — current pg-synced mappings, polled every 2s
* logs — SSE stream backed by a logrus hook + 500-entry ring buffer
Opt-in via AUTOMC_UI_BINDING (e.g. ":8082"); unset = no-op, behaves
exactly like upstream. Designed to live behind server-manager's
/infra/mc-router/* reverse-proxy.
Patch is internal/automc-only, same fork philosophy as the rest —
upstream files stay verbatim.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>