mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4289] [GUI] Monitor: /v1 proxy requests show no VRAM hit rate, and native engine metrics are not shown #1892
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1892
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Songokou1983 on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4289
Environment
--kv-resident 32768,--conversation-cache-mib 24576 --conversation-cache-slots 6/v1proxy: Hermes (OpenAI Python SDK), Qoder (undici), and Codex Desktopon another PC through Tailscale.
What I see
In Monitor, requests that arrive through the app's
/v1proxy show—in the VRAM hit rateand Reused columns. Several other Monitor values are clearly not the loaded native instance:
—hit_rate0.94–0.98 in/api/native—stopped, port 8080ready, native instance port 18500unavailableThe GPU temperature, power, VRAM and RAM cards do show real values.
Evidence
Engine request records (
GET /api/native) contain the figures:The Monitor request record (
GET /api/monitor) for the same kind of request has only:GET /api/monitoralso reports:while
/api/nativehasstatus:"ready",port:18500,context:262144andmetrics.engine.expert_slots:17921,metrics.conversation_cache.enabled:true.Why (static analysis, unconfirmed at runtime)
/v1request records lose the timing fields.apps/host/server/native-gateway.mjs'sobserve()keeps onlypredicted_per_secondandprompt_per_second;serving.mark()stores onlytokens/tps/promptTps.
hit_rate,pcie_share,cache_n,draft_n,draft_n_accepted,prompt_msandpredicted_msare dropped.serve/server.py'srequest_timings()returns
cache_n,prompt_*,predicted_*anddraft_*, but nothit_rate/pcie_share,although
/metricsalready computes both per request (hits / lookups,offloaded / routed).apps/host/server/monitor.mjs'ssnapshot()usessupervisor.status()andstate.expertCache/context, not the loaded native instance'smetricsfrom/api/native. That is why engine, context, expert cache and conversation cache arethe old defaults, and
totalsstays at zero for/v1proxy traffic (monitor.record()is onlycalled on the app's own chat path).
/v1/responses(Codex) does not emittimingsat all yet, so even a fixed gateway has nothing toread for Responses traffic.
Suggested fix
serve/server.py: includehit_rateandpcie_shareinrequest_timings()(same arithmetic as/metrics; omit when the engine did not report the counters).apps/host/server/native-gateway.mjs: readhit_rate,pcie_share,cache_n,draft_n,draft_n_accepted,prompt_ms,predicted_msfromvalue.timingsandvalue.response.timings;pass them to
serving.mark().monitor.mjs/native-control: when a native instance is ready, use itsmetrics.engine(
max_context,expert_slots,expert_cache_mib),metrics.conversation_cacheand the instancestatus/port instead of the old supervisor state; call
monitor.record()from the proxy path sototals/history include proxied requests.
timingsto/v1/responsesfor Codex.Notes
problem.
app or change the running instance.
serve/server.pychange.@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.