Discovery

Auto-detect collectors on a fresh host.

nanook discover probes the host and suggests collectors: system stats, mounted disks, network interfaces, listening TCP ports, common processes, and reachable HTTP endpoints. It writes them into your nanook.toml.

nanook discover

Interactive by default: pick from a checklist of suggestions.

Inside the picker:

KeyAction
/ (or j/k)move focus
spacetoggle the focused candidate
a / A / iselect all / none / invert
Gtoggle every candidate in the focused group
eedit name, interval, and opts of the focused candidate
rrescan the host (re-runs every detector and re-reads nanook.toml)
entersave the selection
q / esccancel

Flags

FlagWhat
--printPrint the proposed TOML to stdout instead of writing
--mergeAppend to an existing config (keeps your current entries)
--forceOverwrite the config even if it exists
--yesAccept every suggestion, no prompt
--listList the available detector groups and exit
--include <groups>Comma-separated allowlist (e.g. system,disk)
--exclude <groups>Comma-separated denylist

Detector groups: system, disk, net, tcp, process, http.

Examples

Bootstrap a brand new host with everything it can find:

nanook discover --yes

Only system + disk, append to existing config:

nanook discover --include system,disk --merge

Preview without writing:

nanook discover --print --yes | less