Documentation
Command line
grpcprocctl: the processes, nodes, links and events of a whole cluster, from a terminal.
grpcprocctl asks one node's Inspector, which forwards to every other node's, so one address reaches the whole cluster. The same binary serves the Web UI and the MCP server. It is grpcproc/tools, a separate module.
Install and connect
go install github.com/floatdrop/grpcproc/tools/cmd/grpcprocctl@latest
export GRPCPROC_ADDR=10.0.0.5:9000 # or --addr on each command
grpcprocctl --plaintext nodesIt connects with TLS unless told --plaintext. The flags follow grpcurl's: --cacert for a CA of your own, --cert and --key for mutual TLS, --servername when the name to verify differs from the address. --timeout bounds each request, 5s by default, and --version prints the version it was installed at. Connection flags come before the command; the command's own flags come after its name.
Finding a backlog
ps lists a node's processes. Sorted by mailbox, the ones that cannot keep up come first:
grpcprocctl --plaintext ps --sort mailboxPID NAME LABEL STATE MAILBOX OLDEST RECEIVED SENT BUSY LAST MESSAGE UPTIME
<orders-1.1718.4> ledger-writer ledger running 41 1.111s 1 0 1.111s ledger.v1.Post 1.112s
<orders-1.1718.1> orders-sup supervisor idle 0 0 0 0s 1.112s
<orders-1.1718.2> reservations reservation idle 0 0 0 0s 1.112s
<orders-1.1718.3> payments payment idle 0 0 0 0s 1.112s
<orders-1.1718.5> bank-session session idle 0 0 0 0s 1.112sledger-writer has been running one message for a second while 41 wait. inspect asks a process what it publishes about itself; this one cannot answer, because it is busy:
grpcprocctl --plaintext inspect --wait 50ms ledger-writerstate: running
mailbox: 41 (peak 42, oldest 1.136s)
busy: 1.137s
busy for: 1.136s
last message: ledger.v1.Post
inspect: grpcproc: inspect <orders-1.1718.4>: busy for 1.187s: context deadline exceededA process that is free answers with whatever it publishes through WithInspect; a supervisor lists its children and its restarts:
name: orders-sup
label: supervisor
monitors: 2
child.payments: <orders-1.1718.3> permanent restarts=0
child.reservations: <orders-1.1718.2> permanent restarts=0
restarts: 0/3 in 5s
strategy: one_for_oneps filters by --name (a substring), --label, --state (idle, running, waiting-reply, exiting) and --min-mailbox; sorts by pid, mailbox, received, sent or busy, the time it has spent anywhere but waiting for a message, as Unix ps counts CPU time; and stops at --limit. A pid is written as grpcproc prints it, <node.incarnation.id>, and reaches its node wherever it is; a name is looked up on --node, by default the node serving the Inspector.
Nodes and links
nodes lists every node the one it asks knows of: the members its Config.Membership reports, so a node nothing has talked to yet is found too, and those it is linked to; when it reports none, as without a Membership, it walks the links of every node it finds. With --json it also lists each node's links, up to 32 nodes. It asks 32 nodes at a time, each within --timeout, lists those not answered after 30 seconds, or --timeout if longer, as such, and says which it could not reach, with each node's metadata, its version say, which follows a rolling deploy node by node, and its peers: how many are up, and those down by name. node [name] shows one: its processes, dead letters, and each link with its traffic, the envelopes queued on it and their bytes, and its last error. A down outbound link with a RETRY IN is a peer whose dials failed: sends to it fail at once until then.
Watching events
watch streams a node's events as they happen: spawns, exits with their reasons, links going up and down, dead letters. --kind keeps some of them, --count stops after so many:
grpcprocctl --plaintext watch --node orders-1 --kind exit,dead-letterWith --json, each event is a line of its own, so grpcprocctl --json watch | jq sees them as they come.
Exit and log level
exit <pid|name> [reason] asks a process to exit, with reason killed unless told another; its supervisor, if it has one, starts it again. loglevel <pid|name> <level> lowers or raises one process's log threshold (debug, info, warn, error, or a number), to see more of it without restarting anything. An Inspector served with inspect.ReadOnly() refuses both.
Leader elections
leader <cluster> shows a grpcproc/leader election as each node that takes part sees it. Nodes that name different leaders, or lag a term behind, show a partition. move, cordon and uncordon go to whichever node leads, and print the table once every node agrees:
grpcprocctl --plaintext leader cordon scheduler b # b led: it hands overNODE ROLE TERM LEADER VIEW STATE CORDONED UNREACHABLE SINGLETON BACKOFF ERROR
a leader 2 a a,b,c 2.3 b <a.1.11>
b follower 2 a a,b,c 2.3 b none 200ms
c follower 2 a a,b,c 2.3 b noneleader move <cluster> hands leadership to the follower with the latest state, or --to the node named. A cordoned node campaigns no more until leader uncordon, across its own restarts: cordon a node, work on its host, start it again, uncordon it. If the nodes do not all agree by --timeout, the command shows the table as it stands and says so.
Cron jobs
cron finds every grpcproc/cron process, on --node or on every node, and lists its jobs. enable, disable and remove change one job, then list the process again:
grpcprocctl --plaintext cron disable --node b billing yearlyNODE CRON JOB SPEC ZONE NEXT LAST RUNNING LAST FAILURE ERROR
b billing leap 0 0 29 2 * UTC 2028-02-29T00:00:00Z 0
b billing paused 0 * * * * UTC disabled 0
b billing yearly @yearly UTC disabled 0A cron process is known by the message it takes, whatever it is named; across every node also by its label, cron, so one spawned with a label of its own is found with --node. Its runs are processes of their own, labelled cron:<job>: grpcprocctl ps --label cron:yearly shows those going.
Sagas
saga finds the grpcproc/saga engines and asks one that says it runs the saga, on --node if given: an engine answers for the runs of the sagas it runs and no others, and shows their data only with its Config.InspectData. With no saga named, runs lists the sagas of the first engine found. runs lists them a page at a time, by --status, and prints the flags for the next page:
grpcprocctl --plaintext saga runs --status stuckSAGA ID STATE STATUS ATTEMPTS SIGNALS OWNER UPDATED ERROR
orders order-17 charging stuck 5 1 2026-10-05T11:49:21.704174Z card declinedget shows one run, its error and the signals waiting for a state that takes them, with its data and their payloads as JSON when the engine shows them. Both go through the Inspector's Query, which a read-only Inspector serves. resume makes a stuck run active again, through Call, which it refuses, and shows the run as it then is.
Graphviz
grpcprocctl --plaintext dot --cluster | dot -Tsvg -o processes.svgdraws each node as a cluster, each supervisor bold, an edge from each process to those it started, and any process with waiting messages in red. Without --cluster it draws one node, --node or the one it asks.
In a browser
grpcprocctl --plaintext web # http://localhost:9911serves the same data as a page that refreshes every second: Web UI.
JSON
--json, before node, nodes, ps, inspect, names, watch, leader, cron or saga, prints what the table shows as JSON: one indented value, or for watch one compact event per line. The objects are those the MCP tools return, which wrap lists in an object of their own, so a script and an agent read the same fields.
Commands
| Command | |
|---|---|
node [name] | Counters and links of a node. |
nodes | Every node this one knows of, by the members its Membership reports and by links, with its peers up and down; one that serves no Inspector says so, with no counters. |
ps | Processes: --node, --name, --label, --state, --min-mailbox, --sort pid|mailbox|received|sent|busy, --limit. |
inspect <pid|name> | One process, with what it says about itself: --node, --wait. |
names [name] | Global names: who holds one, or a list: --node, --prefix, --limit. |
groups [group] | A process groups scope's groups, with their members on every node and on this one, and its other nodes and their states; or one group's members: --node, --scope, --prefix, --limit. |
watch | Stream spawns, exits, links, dead letters: --node, --kind, --count. |
exit <pid|name> [reason] | Ask a process to exit. |
loglevel <pid|name> <level> | Change one process's log level. |
leader [status] <cluster> | A leader election, as each node that takes part sees it. |
leader move <cluster> | Hand leadership over; --to a node. |
leader cordon|uncordon <cluster> <node> | Keep a node from leading, to work on its host, or let it lead again. |
cron [list] [<pid|name>] | Cron processes and their jobs: --node. |
cron enable|disable|remove <pid|name> <job> | Change a job of a cron process: --node. |
saga [engines] | Saga engines and the sagas they run: --node. |
saga runs [<saga>] | Runs of a saga, or of one engine's sagas: --status, --limit, --after and --after-saga for the next page. |
saga get <saga> <id> | One run, its error and waiting signals, and its data when the engine shows it. |
saga resume <saga> <id> | Make a stuck run active again. |
dot | Graphviz of processes and who started whom: --node, --cluster. |
mcp | Serve these as MCP tools over stdio: --allow-writes. |
web | Serve a page that shows the cluster live: --listen, --allow-writes. |