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.
rezolus recordrezolus record -o run.dendro -i 100ms -d 30srezolus record -o bench.dendro -- ./bench.sh --iters 100rezolus record --url http://host:9090/metrics -o svc.dendro -d 5mHindsight
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.
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.
rezolus statusrezolus status web-01rezolus status || echo "agent is unhealthy"Viewer
rezolus view [OPTIONS] [INPUT] [EXPERIMENT]rezolus view output.dendrorezolus view out.dendrorezolus view http://localhost:4241rezolus view --tui out.dendroMCP Server
rezolus mcp [SUBCOMMAND]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.
rezolus mcp query out.dendro 'sum(irate(cpu_cycles[1m]))'rezolus mcp query out.dendro 'sum(irate(blockio_bytes[1m]))' --start 2026-11-13T15:00:00Z --end 2026-11-13T15:30:00Z --above 5e8rezolus mcp detect-anomalies out.dendroRecording 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.
annotate
Embed service-extension KPI queries, events or a systeminfo JSON into each recording of an archive, in place or into a copy.
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).
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.
filter
Shrink an archive to the samplers or metric columns named, in place or into a new .dendro.
convert
Turn a raw msgpack recording (record -o out.raw in 5.x) into a .dendro. Plain or zstd input, detected by content.
snapshot
Copy an archive that is still being written into a complete standalone .dendro, without pausing the writer.
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.
rezolus recording upgrade out.rezrezolus recording metadata -i out.dendrorezolus recording annotate run.dendro --queries kpis.jsonrezolus recording combine before.dendro after.dendro \ --ab baseline=before.dendro experiment=after.dendro -o ab.dendroConfiguration
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:
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.