Expand description
Global runtime metrics shared with frontends such as the CLI --tui mode.
Global runtime metrics shared with frontends such as the CLI --tui mode.
The plugin runner stamps per-thread activity as data flows through its handlers and records a structured snapshot of every stats pulse; a frontend polls these from its render loop instead of scraping log lines.
Structs§
- Pulse
Snapshot - Structured copy of the numbers a stats pulse logs, for frontends to render.
Functions§
- db_
retry_ count - Total ClickHouse write retries this run.
- init
- Prepares metrics for a new run with
thread_countfirehose threads. - latest_
pulse - Returns the most recent stats pulse, if any.
- note_
db_ retry - Records one retried ClickHouse write attempt.
- note_
thread_ activity - Records that data flowed through
thread_idjust now. - note_
thread_ transaction - Records one processed transaction on
thread_id(also stamps activity). - now_ms
- Milliseconds since metrics tracking began (a process-wide monotonic clock).
- record_
pulse - Stores the latest stats pulse.
- resume_
command_ template - The resume command template recorded at CLI parse time, if any.
- run_
slot_ range - The half-open slot range
[start, end)of the current run, if one is active. - set_
resume_ command_ template - Stores the process invocation with the range positional replaced by
{range}, used to print an accurate resume command in fatal error messages. Set once at CLI parse time and deliberately not cleared byinit(it describes the process, not the run). - set_
run_ slot_ range - Records the half-open slot range
[start, end)the current run covers. - thread_
count - Number of firehose threads in the current run.
- thread_
idle_ ms - Milliseconds since data last flowed through
thread_id, orNoneif the thread has not reported any data yet. - thread_
tx_ count - Total transactions processed by
thread_idso far.