Skip to content

JSONL events

Each run writes runs/<run-id>/events.jsonl: one JSON object per line, in the order the events happened. Every part of the run (client, /metrics, journal, telemetry) goes into the same file, so one sort by seq or mono_ns gives the full timeline.

Envelope

Every record has these fields:

Field Type Meaning
ts string Client host wall clock, ISO 8601 UTC.
mono_ns int Client host monotonic clock in nanoseconds, the same in every client process. Use it for durations between events.
seq int Run-wide sequence number starting at 0, with no gaps. A load's worker processes write through the main process, which numbers their records as they arrive: each stream's records are in order, but between streams of one load seq can differ slightly from mono_ns order.
event string Event type (see below).
run_id string The run identifier.

Records also carry the context they were written in:

Context Fields added
Input input_id. On the events written while preparing a clip: staging the clip, ffprobe, ffmpeg, audio_loaded, input_ready, input_error and reference_error. Staging a reference file from S3 is shared by every clip that names it, so those events have none.
Target target
Phase phase: warmup or measure. On load, stream, chunk, warm-up and telemetry events. Not on run events, target_start, http_get, the network baseline, target_error or target_end. The network baseline's own phase field (start or end) is unrelated, so filter on phase == "measure", not on phase being set.
Job job: the job's name from the plan, or null without --plan. On load, stream and chunk events, warm-up streams included.
Load load_id, model, strategy, boundary, audio_format, pacing, chunk_seconds, concurrency, repeat, input_id and input_sha256 (of the staged file)
Stream Load fields, plus stream_id and speaker (0 to concurrency − 1). Warm-up streams aren't part of a load: they carry the configuration fields with concurrency 1 and speaker 0, but no load_id or input fields.
Chunk chunk_index

In chunk events, seconds is measured from just before the request was sent, using time.perf_counter. See What the timings mean.

Run events

Event Fields
run_start argv, plan (path and sha256 of the plan file; null without --plan), options (run-level options, plus jobs: each job's name and resolved sweep and request options), targets, host (hostname, platform, machine architecture, CPU count, Python, package version, ffmpeg/ffprobe versions, tcp settings (congestion control, slow start after idle, buffer sizes), EC2 identity from IMDSv2, client_image (the client container's image ID on on-host runs, otherwise null), work dir mount and free space)
warning message
manifest_loaded uri, sha256, rows (rows in the file), columns, selection (where, require_reference, sample, seed, limit, rewrite, and columns: the --id-column, --uri-column and --reference-column values as given, null when defaulted), input_ids (the clips chosen, in run order), jobs (the plan jobs that measure them, one event for jobs with the same input options; [null] without a plan). Only with --manifest.
input_stage_start uri, inputs_dir
input_s3_head bucket, key, head (full HeadObject response)
input_staged uri, path, bytes, cached (reused from the instance-store copy: an S3 object whose ETag hadn't changed, or a local file whose size and modification time hadn't), seconds, megabytes_per_second (null when cached), sha256. Also written for the manifest and for S3 reference files.
subprocess command, returncode, seconds, stderr (lines). Written for ffprobe and for ffmpeg at -loglevel verbose.
ffprobe_result path, result (full -show_format -show_streams -show_programs -show_chapters JSON)
audio_loaded input (measured or warmup), samples, seconds
input_ready uri, sha256, samples, seconds, row (the whole manifest row, or null for a single input), reference (text, source, format (text, inline, ego4d-av or segments), segments; null without one). One per measured clip.
input_error uri, error, traceback. A manifest clip was skipped.
reference_error reference, error, traceback. The clip is measured without a score.
run_error error, traceback
run_end failed_targets (["run"] after a run_error or a stop), skipped_inputs, stopped_by (SIGTERM or SIGINT when a signal stopped the run, else null), upload_to

Target events

Event Fields
target_start config
http_get url, status, headers, body. Written for /health, /version, /v1/models and the sidecar /health.
metrics_snapshot url, scrape_seconds, families: list of {name, type, samples: [{name, labels, value}]}. Non-finite values (+Inf, NaN) are strings.
metrics_error url, error
sidecar_connected stream, url
server_log stream (journal or a command name), record (see below)
sidecar_closed stream
sidecar_error stream, url, error
network_baseline phase (start or end, the baseline's own field, not the warm-up phase), probe (tcp_connect, http_get or upload), url, samples (seconds), min, p50, p90, max, mean. http_get adds first_seconds (the request that opened the connection, left out of the summary). upload adds bytes, server_receive (summary) and server_receive_samples: time on the host from the first body bytes read to the last.
network_error phase, error, traceback. The baseline failed (for example, a sidecar without /sink). The target still runs.
target_error error, traceback
target_end model

metrics_snapshot and server_log records carry no stream_id, and their phase is the one in progress when they were written. vLLM counters are cumulative, so measure-phase snapshots still include warm-up traffic. To link them to a stream, use the mono_ns (or ts) range between that stream's stream_start and stream_end. With --concurrency above 1 the streams of a load overlap, so use the range between load_start and load_end.

server_log.record:

  • journal: journald's JSON entry as-is, with MESSAGE, _PID, __REALTIME_TIMESTAMP (inference host clock, microseconds), __CURSOR and the other fields. Non-JSON lines (journalctl errors) are plain strings. Only lines at or above --log-level are logged (run_start's options.log_level records it). At the default, info, vLLM's per-request lines are left out. journald errors (PRIORITY 3 or less) are always logged. The command streams (nvidia-smi, neuron-monitor) are never filtered.
  • Commands: {"ts": <host epoch seconds>, "data": <parsed JSON>} for JSON output (neuron-monitor), otherwise {"ts": ..., "line": "<raw>"} (nvidia-smi CSV).

Warm-up events

Written once per target when --warmup-seconds is above 0. Warm-up streams write the usual stream and chunk events, and their repeat counts passes over the configurations.

Event Fields
warmup_start uri, sha256 (of the staged warm-up file), audio_seconds, min_seconds, concurrency, configurations (one entry per distinct configuration across the jobs, with the job whose settings it uses)
warmup_error job, the stream's settings, error, traceback. Warm-up carries on.
warmup_end seconds, streams, requests, failures (failed requests), errors (streams that raised), requests_by_engine (increase in vllm:request_success_total per engine label; null if /metrics couldn't be read), engines_not_reached

Load events

One load per input, configuration and concurrency level. See Concurrent load.

Event Fields
load_start streams, audio_seconds (clip length; each stream sends this much)
load_end streams, failures (sum over streams), wall_seconds (first stream's start to last stream's end, after encoding), audio_seconds (sum over streams), rtfx (audio_seconds per wall second; the ramp-up and tail are included, so it reads below the steady-state rate at high concurrency), client_cpu_seconds (the main process and the load's worker processes), host_cpu_busy_fraction (as in stream_end, over the whole load), client_processes (processes the streams were spread over; 1 runs them in the main process), client_process_cpu_max_fraction (the busiest client process's CPU seconds per wall second; near 1, the client limited the load), loop_lag_p99_seconds, loop_lag_max_seconds (how late a 100 ms asyncio timer fired during the load, in the worst process; null if the load ended first)

Stream events

Event Fields
stream_start chunk_count, audio_seconds, bitrate, audio_offset_seconds (where in the clip this speaker starts; 0 for speaker 0), start_delay_seconds (wait after the load starts before the first request goes)
chunk_encoded chunk_index, audio_bytes, seconds (encode time), command (ffmpeg, or null for WAV), stderr. One per chunk, all written before the load's first request.
stream_end transcript, chunk_count, failures, wall_seconds (from this stream's first send, after its start delay), audio_seconds, rtfx (audio seconds per wall second), client_cpu_seconds (CPU used by the whole client process during the stream, including the other streams of its load), host_cpu_busy_fraction (busy share of all host CPUs during the stream, from /proc/stat, including vLLM on on-host runs; null off Linux), word_errors (null without a reference or for a speaker other than 0, or reference_words, hypothesis_words, substitutions, deletions, insertions, wer (null for an empty reference) and normalizer; see Accuracy)

Chunk events

In order, for each chunk:

Event Fields
chunk_start start_seconds, end_seconds (audio window), ready_seconds (when the request is due on a live stream), held_back_seconds (ready_seconds minus end_seconds: audio already heard but left for the next chunk by a silence cut), behind_realtime_seconds (send time minus ready_seconds; negative means ahead of live)
request_sent url, form (every form field except the audio), filename, content_type, audio_bytes, audio_sha256
response_headers status, http_version, headers, seconds
sse_event data (parsed SSE payload), seconds. One per data: line.
sse_line line, seconds. Non-data: lines such as event: or comments.
sse_unparsed line, seconds. A data: line that isn't JSON.
sse_done seconds
response_json data, seconds. Sent instead of SSE when the server returns plain JSON.
response_error status, body, seconds
request_exception error, traceback, seconds
response_complete text, seconds (end to end), ttft_seconds (first non-empty delta), usage, finish_reason
request_trace phases: list of {name, seconds} from httpcore, such as connection.connect_tcp.complete (only when a new connection was opened), http11.send_request_body.complete and http11.receive_response_headers.complete. One per request.

Each chunk has exactly one request_trace and exactly one of response_complete, response_error or request_exception. On success, request_trace comes just before response_complete. On failure, it comes just after the error event.

Inter-token gaps are the differences between successive sse_event.seconds values within a chunk.

Loading

import json

import pandas as pd

events = pd.read_json("events.jsonl", lines=True)
measured = events[events.phase == "measure"]
chunks = measured[measured.event == "response_complete"]
# One row per clip, with its manifest columns as row.<column>
with open("events.jsonl") as file:
    clips = pd.json_normalize([record for record in map(json.loads, file) if record["event"] == "input_ready"])