mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4947] [CLOSED] Monitor: --monitor-aggregate shows speed and prefill summed over every stream #5260
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#5260
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4947
Author: @elight
Created: 11/1/2026
Status: ❌ Closed
Base:
main← Head:monitor-aggregate-rates📝 Commits (4)
3b05cfeMonitor: --monitor-aggregate shows speed and prefill summed over every streamfad477bMonitor: STRATA_MONITOR_AGGREGATE=1 turns the aggregate rates on tooc5351f1Monitor: aggregate rates hold their last value until really 0256ee45Monitor: aggregate rates are the last second, not the gap between samples📊 Changes
4 files changed (+263 additions, -9 deletions)
View changed files
📝
serve/runconfig.py(+1 -0)📝
serve/server.py(+91 -2)➕
serve/test_monitor_aggregate.py(+157 -0)📝
serve/web/app.js(+14 -7)📄 Description
What
A new opt-in flag,
--monitor-aggregate(or"monitor_aggregate": truein the run config). With it, the Monitor's Speed and Prefill cards and their sparklines show tokens per second summed over every running stream, measured second by second. With one stream it is that stream's rate. With several running at once in a given second, it is their sum.Without the flag nothing changes.
Why
With
"parallel": N, the cards show one request's rate, so you can't see at a glance what the box as a whole is doing.How
_noteby each request's new tokens. A count that restarts from zero, like a retry, never subtracts.ms × fresh tok/s, which isposition − pp_from, so a reused cached prefix is never counted. A new prompt is spotted by a smallerms, and the counter also resets at request start and slot admission. Replicas add up across engines.tok_sandprefill_tok_s_meanseries./metricslivegainsrates: "aggregate",agg_tok_sandagg_prefill_tok_s.Tests
serve/test_monitor_aggregate.py(11 tests) covers:test_server,test_monitor,test_prometheus,test_draft_layer,test_admit_orderandtest_lifecycleall pass.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.