Patinas Observability Dashboard (Synthwave)
A single-page dashboard that scrapes Patinas Prometheus /metrics and renders:
- Network/transport stats: connectedness, subscribers, send-queue depth, bytes-in-flight, drops, QUIC counters
- RTSP ingest smoothness (hub): fps EMA, jitter EMA, drops, frames
- Storage/recording (node): volume presence/health/free bytes + recording enabled/selected volume
- A Metrics Explorer table that shows everything the scraper can see (metric + labels + value)
Quick start (recommended: same origin)
Browsers block cross-origin fetch() to /metrics unless the metrics server sets CORS headers (Patinas does not by default).
Best practice is to serve this dashboard from the same host:port as the Patinas metrics HTTP server.
If you already have a way to serve static files from that host, copy these files and browse:
index.htmlapp.cssapp.js
Then keep the default node target as /metrics and enable the extra targets you need.
Same-origin /dash (recommended on devices)
patinas-node serves this dashboard from the same metrics server at /dash/ to avoid CORS.
Most deployments can now just browse:
http://<node>:9640/dash/
patinas-node run --metrics-addr 0.0.0.0:9640
Optional: override dashboard assets from disk (for rapid iteration) using PATINAS_DASH_DIR or --dash-dir:
PATINAS_DASH_DIR=/opt/patinas/dash \
patinas-node run --metrics-addr 0.0.0.0:9640
If you bind to a non-loopback address and require bearer auth:
PATINAS_METRICS_TOKEN="secret" \
patinas-node run --metrics-addr 0.0.0.0:9640 --metrics-token "secret"
Then browse http://<node>:9640/dash/, paste the token into the UI, and click Start.
Notes:
/dash/*is allowed through auth middleware so the static page can load./metricsstill requires the bearer token.
Dev / laptop mode (CORS workaround)
This folder includes an optional tiny proxy server for development:
python3 ./serve_proxy.py --listen 127.0.0.1:7999
Then open http://127.0.0.1:7999/ and set CORS mode to proxy (/proxy?url=…).
Targets / defaults
The dashboard supports scraping multiple endpoints at once:
- node: defaults to
/metrics - hub: defaults to
http://127.0.0.1:9641/metrics - vms-bridge: defaults to
http://127.0.0.1:9642/metrics
If your metrics surface requires auth, paste your Bearer token into the UI.
Pinned metrics (used for the “headline” charts)
Hub ingest smoothness:
patinas_rtsp_ingest_fps_ema{component="hub"}patinas_rtsp_ingest_jitter_ema_ms{component="hub"}patinas_rtsp_ingest_frames_raw_total{component="hub"}→ frames rate (Δ/s)patinas_rtsp_ingest_dropped_channel_full_total{component="hub"}→ drops rate (Δ/s)
Transport (selectable by stream_id / component / transport):
patinas_transport_connected{component,stream_id,transport}patinas_subscribers_current{component,stream_id}patinas_send_queue_depth{component,stream_id}patinas_bytes_in_flight{component,stream_id}patinas_transport_dropped_total{component,stream_id}→ dropped rate (Δ/s)patinas_quic_datagrams_sent_total{component,stream_id}→ send rate (Δ/s)
Storage/recording (node):
patinas_storage_volume_free_bytes{volume}patinas_storage_volume_present{volume}patinas_storage_volume_healthy{volume}patinas_recording_enabledpatinas_recording_selected_volume{volume="..."}