CLI & Configuration

Commands, flags, and TOML configuration reference.

Commands

Agent default mode

$sudo rezolus <CONFIG>

Collect metrics via eBPF. Requires root. Listens on 0.0.0.0:4241.

Exporter

$rezolus exporter <CONFIG>

Pull from agent, expose Prometheus metrics on :4242.

Recorder

$rezolus record [OPTIONS] [-- <COMMAND>...]

With no arguments at all this records the local agent (http://localhost:4241) into rezolus.dendro until ctrl-c. The output must end in .dendro; any other output, a --format other than dendro, and --separate are refused. A rezolus 5.x recorder (5.27.0 or later) still writes .rez, parquet and raw.

--url <URL> Endpoint to record [default: http://localhost:4241]
-o, --output <PATH> Output path, ending in .dendro [default: rezolus.dendro]
-i, --interval <INTERVAL> Collection interval [default: 1s]
-d, --duration <DURATION> Record for a fixed window, then stop
-l, --label <KEY=VALUE> Tag an archive recording (repeatable); host/endpoint auto-filled
-m, --metadata <KEY=VALUE> Metadata on every recording in the archive (repeatable)
--config <FILE> TOML config for multi-endpoint recording
--endpoint <URL> Endpoint with options (repeatable), url[,alias=][,tier=][,service_kind=][,role=][,protocol=]
-v, --verbose Increase verbosity (stackable)
# Record the local agent until ctrl-c → rezolus.dendro
$rezolus record
# Record 30s at 100ms intervals
$rezolus record -o run.dendro -i 100ms -d 30s
# Record only while a benchmark runs (perf-record style)
$rezolus record -o bench.dendro -- ./bench.sh --iters 100
# A Prometheus endpoint is scraped into the same kind of archive
$rezolus record --url http://host:9090/metrics -o svc.dendro -d 5m

Hindsight

$rezolus hindsight <CONFIG>

Rolling buffer kept as a .dendro archive. Send SIGHUP to write a snapshot. An output not ending in .dendro is refused at startup.

Status

$rezolus status [OPTIONS] [ENDPOINT]

Ask a running agent how it is doing: version, uptime, and a per-sampler health rollup. With no argument it asks the agent on this machine.

ENDPOINT Agent to ask [default: http://localhost:4241]; a bare host or host:port is fine
--json Emit the raw /status JSON

Exit status: 0 when nothing is wrong, 1 when any sampler is degraded, failed or pmu-limited — so it works as a health check or readiness probe.

# Is the agent on this machine healthy?
$rezolus status
# Another host, written the short way
$rezolus status web-01
# Use it as a gate in a script
$rezolus status || echo "agent is unhealthy"

Viewer

$rezolus view [OPTIONS] [INPUT] [EXPERIMENT]
INPUT First capture: a .dendro recording, an agent URL, or alias=path
EXPERIMENT Optional second capture for A/B comparison (a one-recording .dendro)
-l, --listen <ADDR> Viewer listen address (e.g. 127.0.0.1:8080)
--templates <DIR> Directory of service-extension template JSON
--category <NAME> Activate category mode (e.g. inference-library)
--proxy-allow <PATTERN> Whitelist a host pattern for URL proxy (repeatable)
--proxy-allow-any Disable proxy allowlist entirely (trust-everyone mode)
--tui Terminal UI instead of a browser (needs a file or agent URL)
--cache-size-mb <MB> Buffer pool size, opened segments and decoded blocks together [default: an eighth of memory, 500 to 8192]
--query-concurrency <N> Queries run at once (others wait) [default: half the CPUs, 2 to 8]
-v, --verbose Increase verbosity
# View a recording
$rezolus view output.dendro
# View an archive (a 2-recording archive renders as A/B)
$rezolus view out.dendro
# View live agent
$rezolus view http://localhost:4241
# Explore in the terminal, no browser
$rezolus view --tui out.dendro

MCP Server

$rezolus mcp [SUBCOMMAND]
analyze-correlation <FILE> <Q1> <Q2>
describe-recording <FILE>
describe-metrics <FILE>
detect-anomalies <FILE> [QUERY]
query <FILE> <QUERY> [--start TIME] [--end TIME] [--step DURATION] [--above VALUE]
extract-features <FILE>
install [--scope user|project] [--dry-run] [--no-skill] [--allow-mutating] [--viewer-url URL]

Every <FILE> is a .dendro; a .rez or .parquet from an earlier release is refused with rezolus recording upgrade FILE, which converts it. With no subcommand, rezolus mcp runs as a stdio MCP server for an LLM client; in Rezolus 6.0 and later, --allow-mutating enables the mutating tool (remove_events) and --viewer-url URL lets viewer_link return full URLs; install registers it with Claude Code. See MCP Server.

# One-shot PromQL against a recording
$rezolus mcp query out.dendro 'sum(irate(cpu_cycles[1m]))'
# Statistics over the seconds above 500 MB/s, in a window
$rezolus mcp query out.dendro 'sum(irate(blockio_bytes[1m]))' --start 2026-11-13T15:00:00Z --end 2026-11-13T15:30:00Z --above 5e8
# Sweep every metric for anomalies
$rezolus mcp detect-anomalies out.dendro

Recording Tools

$rezolus recording <SUBCOMMAND> [OPTIONS]

Offline operations on .dendro recordings: inspect, embed KPI definitions and events, evaluate checks, combine, shrink, and copy a live archive. upgrade converts the .rez archives, .parquet files and .parquet.ab.tar A/B tarballs earlier releases wrote; every other subcommand refuses them with that command. rezolus parquet … still works as an alias.

metadata

Describe an archive: its recordings, their labels and metadata, and each table with its cadence.

-i, --input <FILE> The recording (.dendro)
--json Emit JSON (for scripting)

annotate

Embed service-extension KPI queries, events or a systeminfo JSON into each recording of an archive, in place or into a copy.

FILE The recording to annotate (.dendro)
-o, --output <PATH> Write the annotated copy here instead of in place
--queries <JSON> Service-extension JSON to embed
--undo Remove the embedded KPIs
--systeminfo <PATH> Store a systeminfo JSON
--event <SPEC> Add one event (repeatable)
--add-events <PATH> Add events from a JSON/JSONL file (repeatable)
--clear-events Remove existing events first

check

Evaluate the checks a recording's KPIs carry and print a verdict per check; exits 0, 1 (a check failed) or 2 (a check could not be evaluated).

FILE The recording to check (.dendro)
--queries <JSON> Run these checks instead of the embedded ones
--recording <K=V> One recording of a multi-recording archive
--annotate Write FAIL/WARN windows as kind=check events
-o, --output <PATH> With --annotate, write the events into this new .dendro
--json Print the verdicts as JSON
--templates <DIR> Templates for a recording with no embedded KPIs

combine

Assemble two or more archives into one, a recording per input recording (copies of one recording are one), opened as one combined view or, with --ab, as an A/B comparison. Two inputs that are copies of one recording (a file and a snapshot of it, or two snapshots or hindsight dumps of one buffer) are read as one recording, gaps and overlap included; where their metadata differs (KPIs, systeminfo), each key is taken from the first input that holds it, except events, which are both inputs' (an event with one id once, from the first input), and a note names which of the KPIs and systeminfo were edited differently and the input each is taken from; to compare two annotations of one recording, use --ab. One file given twice is refused.

FILES... Input recordings (.dendro)
-o, --output <FILE> The .dendro to write; must not exist
--ab <B=IN> <E=IN> Label the inputs arm=baseline / arm=experiment (one archive input: by position)

filter

Shrink an archive to the samplers or metric columns named, in place or into a new .dendro.

FILE Recording to filter (.dendro)
--samplers <A,B,...> Samplers to keep
--metrics <A,B,...> Metric columns to keep
-o, --output <FILE> Write here instead of in place

convert

Turn a raw msgpack recording (record -o out.raw in 5.x) into a .dendro. Plain or zstd input, detected by content.

FILE Raw recording to convert
-o, --output <PATH> Output .dendro path (default: input with .dendro)
--interval <DURATION> Override the inferred sampling interval
--systeminfo <PATH> Stamp in a systeminfo blob the raw stream never carried
--descriptions <PATH> Stamp in metric help text (only settable here)
-m, --metadata <KEY=VALUE> Tag the output (repeatable)
--force Overwrite an existing output

snapshot

Copy an archive that is still being written into a complete standalone .dendro, without pausing the writer.

FILE The archive to copy (.dendro)
-o, --output <DENDRO> The .dendro to write; must not exist

upgrade

Bring a recording an earlier release wrote up to date. A v1, v2 or v3 .rez, a .parquet file, or a .parquet.ab.tar A/B tarball (two recordings, arm=baseline and arm=experiment) becomes a new .dendro, and the input is not changed. A .dendro is upgraded in place, or into a new file with -o: each sealed segment's index is rewritten as this release writes it, so the viewer opens a table without reading every segment. One an earlier 6.0 build wrote is re-indexed without rewriting its data; a 5.x .dendro (schema 4) is copied into the current layout and the copy renamed over it. Upgrading in place is refused while another process has the file open.

FILE The recording to upgrade
-o, --output <DENDRO> The .dendro to write (default: a .dendro input itself; otherwise the input's name with .dendro for its extension, x.parquet.ab.tar becoming x.dendro)
# Convert a 5.x recording, then inspect it
$rezolus recording upgrade out.rez
$rezolus recording metadata -i out.dendro
# Embed KPIs
$rezolus recording annotate run.dendro --queries kpis.json
# Combine two captures as an A/B comparison
$rezolus recording combine before.dendro after.dendro \
  --ab baseline=before.dendro experiment=after.dendro -o ab.dendro

Configuration

Each mode uses a TOML config file. The reference configs, with every setting and its default documented, are in the config/ directory; the Linux packages install them as /usr/share/doc/rezolus/examples/<mode>.toml.

Drop-in directories

For a config file <dir>/<stem>.toml, the agent, the exporter and hindsight also read every file in <dir>/<stem>.d/ whose name ends in .toml and does not start with .. They are read after the main file, in byte-wise order of file name. Tables merge key by key, so a drop-in that sets [samplers.cpu_perf] keeps the main file's other [samplers.*] sections and the section's other keys. A later file's string, number, boolean or array replaces the earlier value whole. A missing directory is not an error; a drop-in that cannot be read, including a symlink to a missing file, is. A parse error names the file and line; a type error names the key and lists the files read. At log level info (the default) the startup log lists the files read, in order. A file you create must be readable by the user the service runs as (rezolus for the exporter and hindsight). rezolus record --config does not read drop-ins.

The packages install /etc/rezolus/agent.toml, exporter.toml and hindsight.toml as files that set nothing, and create agent.d/, exporter.d/ and hindsight.d/ empty. Put local settings in a file of your own in the directory, for example:

/etc/rezolus/agent.d/50-local.toml
[samplers.cpu_perf]
enabled = false

then restart the service (sudo systemctl restart rezolus). The packages install no file in the .d directories, so an upgrade never replaces, prompts over, or writes .rpmnew files beside the files there.

Agent

config/agent.toml
# General settings
[general]
listen = "0.0.0.0:4241"
# Logging
[log]
level = "info" # error | warn | info | debug | trace
# Scheduler tuning
[scheduler]
policy = "normal" # normal | round_robin | fifo
# Default for all samplers
[defaults]
enabled = true
# Per-sampler overrides
[samplers.cpu_usage]
enabled = true
[samplers.scheduler]
enabled = true

Exporter

config/exporter.toml
[general]
listen = "0.0.0.0:4242"
source = "127.0.0.1:4241"
[prometheus]
histograms = false # true exposes every histogram bucket

Hindsight

config/hindsight.toml
[general]
interval = "1s"
duration = "1h"
source = "127.0.0.1:4241"
output = "/var/lib/rezolus/hindsight.dendro"
listen = "0.0.0.0:4242" # optional HTTP API