Skip to content

feat: headless-host metrics report#297

Draft
eugypalu wants to merge 10 commits into
eugenio/headless-host-stressfrom
eugenio/headless-host-metrics-report
Draft

feat: headless-host metrics report#297
eugypalu wants to merge 10 commits into
eugenio/headless-host-stressfrom
eugenio/headless-host-metrics-report

Conversation

@eugypalu

Copy link
Copy Markdown
Contributor

A metrics-report subcommand for truapi-host: it aggregates the metrics JSONL a
host or fleet run produces (METRICS_JSONL) into one report.

  • Per category/op: count, errors, error rate, p50/p95/max latency (nearest-rank
    percentiles). Plus a per-VU rollup and a header with run id, time span, record
    count, VU count and skipped lines. Malformed lines are skipped and counted, not
    fatal; a missing file or a file with no valid records exits non-zero.
  • Output: a fixed-width table by default; --json emits the structured report
    with deterministic key order (BTreeMap everywhere), so two runs diff cleanly.
  • --baseline prev.jsonl: per-op deltas (Δ = current − baseline) for count,
    error rate and p50/p95, with ops marked changed / new / gone.

@eugypalu
eugypalu force-pushed the eugenio/headless-host-metrics-report branch from e866fe4 to 8781918 Compare July 20, 2026 16:26
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.

1 participant