Add Prometheus-compatible metrics to track API latency, request count, WebSocket connections, and cache hit ratio.