Skip to content

feat(perf): retain bounded optional provider metrics around waves - #23

Merged
plotarmordev merged 1 commit into
mainfrom
feat/provider-metrics-13
Sep 10, 2026
Merged

feat(perf): retain bounded optional provider metrics around waves#23
plotarmordev merged 1 commit into
mainfrom
feat/provider-metrics-13

Conversation

@plotarmordev

Copy link
Copy Markdown
Owner

Closes #13.

Adds optional --metrics-url snapshots before and after each wave, outside measured dispatch/settlement. Retains bounded raw evidence and a plan/wave-bound companion; offline comparison verifies and exposes selected series, counter deltas and compatible acceptance ratios. The allowlist contains the two vLLM draft/accepted counters and running/waiting gauges. Identities include complete canonical labels; missing/reset/inconsistent counters never become a numeric ratio.

Bounds: 2s per scrape, 1MiB body, 64KiB lines, 256 selected series, 16 labels and 4096 encoded label bytes per series; 30s whole-run telemetry admission allowance and 16MiB retained raw data. Completed overhead is charged to the remaining budget and reconstructed from verified receipts on resume. Budget exhaustion records skipped snapshots without calls. Filesystem/scheduler overruns cannot be physically bounded and are disclosed.

No model-auth forwarding, redirects, retries, quiescence wait loop or performance-eligibility changes. Optional HTTP/parser/transport failures remain diagnostics, while missing/tampered promised evidence remains an integrity error. Opt-out preserves historical plan/wave/request shapes; differing metrics policies cannot silently form a matched comparison.

Scope: server-wide counters are not automatically workload-attributed. Scrapes can perturb server state or cadence even outside the measured interval. Nondecreasing counters do not prove no restart. Parsed counters use f64, so values above 2^53 cannot preserve all unit increments; raw evidence remains available. Hashes establish file bindings, not authenticated timing or provider execution. Raw labels/comments need privacy review before sharing.

Verified: independent SIX and HELP initially blocked three defects (unselected-series interference, impossible failure metadata, HTTP 600 aborting collection). Each defect was reproduced by a real CLI regression, fixed, and approved in both follow-up reviews at 88db35d. Integrated fmt, Clippy -D warnings, 153 workspace tests passed/1 ignored, release build and actual loopback CLI smoke including 4 metrics scrapes. No live model/provider request was made; server-specific metric availability and attribution remain unqualified.

@plotarmordev
plotarmordev merged commit 36bdf26 into main Sep 10, 2026
2 checks passed
@plotarmordev
plotarmordev deleted the feat/provider-metrics-13 branch September 10, 2026 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

grill-perf: optional provider metrics snapshot per wave (vLLM /metrics)

1 participant