observer_cli inspects live Erlang and Elixir nodes from the terminal. It offers bounded checks, detailed inspect commands, tracing, and an interactive TUI.
Overview
observer_cli is a diagnostics tool for production Erlang and Elixir systems. Operators and automation connect over Erlang distribution to observe CPU, memory, mailboxes, connections, schedulers, and other runtime metrics on trusted nodes.
The command-line interface favors bounded, repeatable checks with stable text, Erlang term, or JSON output. A default check runs for a fixed window, evaluates VM limit rules, and suggests next inspect steps without implying full health when nothing alarming appears. Separate inspect, trace, describe, and tui commands cover rankings, process detail, authorized tracing, and continuous terminal exploration.
Version 2.x replaces older positional usage with explicit subcommands and requires matching observer_cli and recon versions inside the target release. Controllers ship as escripts needing Erlang OTP 26–29; JSON output needs OTP 27+ on the controller side. Installation options include GitHub release escripts, local builds via rebar3 or Mix, or adding observer_cli as a release dependency.
Safety guidance stresses that distribution cookies grant execution authority, transport is not encrypted by default, and sensitive metadata may remain even with redaction flags. The tool integrates with recon for deeper runtime facts and publishes a versioned JSON schema for agent workflows.
Key features
- Bounded check command with findings
- Inspect CPU, memory, mailbox, connections
- Process and port ranking views
- Explicit node-global trace consent
- Interactive TUI with plugin pages
- Text, term, and JSON output modes
- Escript controller for OTP 26–29
- Published CLI JSON response schema
Use cases
- Incident triage on Elixir production nodes
- Automated BEAM health checks in CI
- Interactive exploration via terminal TUI
- Agent-driven JSON diagnostics