Documentation Index
Fetch the complete documentation index at: https://sysg.dev/llms.txt
Use this file to discover all available pages before exploring further.
inspect
View detailed metrics for a specific service.sysg inspect reads the cached status snapshot
and attaches recent metric samples from the supervisor’s metrics store. It does
not rebuild the full process tree on every invocation unless
status.snapshot_mode is configured as detailed. Use --live to force a
fresh snapshot for a specific inspect request.
Options
| Short | Long | Description |
|---|---|---|
-s | --service | Name of the service to inspect |
- | --stream | Continuously refresh output and render a rolling metrics window of the provided duration (e.g., 5, 1s, 2m) |
-c | --config | Path to configuration file |
- | --json | Emit machine-readable JSON output instead of a report |
- | --sys | Opt into privileged system mode. Requires running as root |
- | --no-color | Disable ANSI colors in output |
- | --live | Force a fresh supervisor snapshot instead of reading the cached snapshot |
- | --log-level | Set verbosity (debug, info, warn, error) |
Examples
View service metrics
Stream with a longer rolling window
Force fresh inspect data
--live recomputes the status snapshot before selecting the inspected unit and
loading recent metric samples. With status.snapshot_mode: summary, it remains
a fresh summary snapshot; with detailed, it refreshes runtime command lines
and process/spawn descendants.
Metrics shown
- CPU usage - Percentage over time
- Memory usage - Percentage over time
- Execution count - For cron jobs
- Average duration - For completed processes
- Success rate - For cron jobs
Snapshot detail
The defaultstatus.snapshot_mode: summary is intended for production-scale
systems. It keeps inspect useful for service health and sampled metrics while
omitting expensive process tree details. Set status.snapshot_mode: detailed
when you need runtime command lines and spawn/process descendants in inspect
output.
