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> Row-group buffer cache size [default: 500]
--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>
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]))'
# 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, opened as one combined view or, with --ab, as an A/B comparison.

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

Convert a recording an earlier release wrote into a new .dendro: a v1, v2 or v3 .rez, a .parquet file, or a .parquet.ab.tar A/B tarball (two recordings, arm=baseline and arm=experiment). The input is never changed.

FILE The recording to convert
-o, --output <DENDRO> The .dendro to write (default: the input's name with .dendro for its extension; x.parquet.ab.tar becomes 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. Examples are in the config/ directory.

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 = "http://127.0.0.1:4241"
[prometheus]
histogram = "summary" # summary | histogram

Hindsight

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