mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4631] [Engine] Monitor: Clear hides only the request rows; the totals can only be reset by restarting the server #2100
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#2100
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 @Efs-O on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4631
Area
[Engine] (speed, kernels, models, the server and API)
What do you want to do?
Reset the Monitor's totals line ("Since …: N requests · … prompt tokens read · … written") without restarting the server.
Today:
self.totals,serve/server.py:3892-3893).POST /unloadand the next load keep the same process, so the totals span every model load. After a few model switches they mix several models' speeds and counts, and they no longer describe the model that is loaded now.serve/web/app.js:1015-1020) only hides the request rows in the browser (reqClearedAfter). The totals line and the server-side counters are untouched, so clearing leaves the totals showing the old numbers. That surprised me: I expected Clear to start the whole Monitor fresh.Two possible shapes, either would do:
POST /metrics/reset(behind the API key when one is set) that zeroesself.totalsand setssinceto now, called by the Clear button./metrics/prometheuscounters should probably stay monotonic since process start, so a reset would apply to the Monitor's totals only.What do you do today instead?
Stop the Strata server process and start it again. That is the only way to zero the totals, and it costs a full model reload.
@au70ma70n commented on GitHub (Oct 30, 2026):
The costing branch work now has four pull requests: the counts are kept between starts, then priced at the owner's own numbers, then split into a cache write and a cache read, and the settings-card layout fix that made the price fields usable.
--totals-resetis a flag for now, not the button this issue asks for - keeping the counts and clearing them are opposite ends of the same file, so which way the counters should move when a window closes is still the maintainer's call. Scope thread: #4742.