TUI Guide

The bewitch TUI shows live metrics and history charts in eight views, plus a ninth Services view when you've configured custom sources.

bewitch

# or connect to a remote daemon
bewitch -addr myserver:9119 -token my-secret

Views #

Switch views with the number keys. The numbering is fixed, whatever hardware the host has.

KeyViewDescription
1DashboardOverview of every subsystem
2CPUPer-core usage (including steal on VMs) with a history chart
3MemoryRAM and swap breakdown with history
4DiskPer-mount space, I/O rates, SMART health
5NetworkPer-interface throughput with a bits/bytes toggle
6HardwareTemperature, power (RAPL), ECC memory, and GPU sub-sections
7ProcessAll processes: sortable, searchable, pinnable
8AlertsAlert rules and fired alerts
9ServicesYour custom sources (only shown when at least one is configured)

The keys available in the current view are listed in a footer at the bottom of the screen.

Global Keys #

KeyAction
1–9Jump to a view
← / →Previous / next view
< / > (or , / .)Shorter / longer history range
rPick a custom date range for the history chart
PgUp / PgDnScroll the view
xSave a screenshot of the current view as a PNG
q / Ctrl+CQuit

Network View #

Per-interface throughput with sparklines and a history chart. Choose which interfaces appear on the chart.

KeyAction
↑ / ↓Move through the interface list
SpaceShow / hide the interface on the chart
aSelect / deselect all
bToggle bits / bytes

Hardware View #

The Hardware view has four sub-sections: Temperature, Power, ECC and GPU. Sections the host has no data for say so. The TUI remembers the active sub-section between sessions.

KeyAction
Tab / Shift+TabNext / previous sub-section
↑ / ↓Move through the sensor, zone or GPU list
SpaceShow / hide the item on the chart
aSelect / deselect all

Process View #

A scrolling table of every process, a detail line for the selected process, and a history chart of the busiest processes below. Processes outside the most active set (the top max_processes plus pinned ones) show fewer details: their FDs, disk and network I/O and command line read --, and the row is dimmed. Narrow terminals drop the less important columns.

KeyAction
↑ / ↓ or j / kMove the selection
PgUp / PgDn, Home / EndJump a page / to the top or bottom
c m p n t fSort by CPU, memory, PID, name, threads, FDs
dSort by disk I/O (read + write)
wSort by network I/O (receive + transmit)
/Search by name or command line (Enter keeps the filter, Esc clears it)
EscClear the search filter
*Pin / unpin the selected process
PShow pinned processes only
TabSwitch the chart between top CPU and pinned processes (when you have pins)
aCreate an alert rule for the selected process

Pinned processes are always tracked in full and are saved on the daemon, so they persist across restarts. See process pinning.

Alerts View #

A rules panel with a detail pane for the selected rule, and a fired-alerts panel below it. Tab switches focus between them; the footer shows the keys for the focused panel.

KeyPanelAction
TabbothSwitch focus between rules and fired alerts
↑ / ↓bothMove the selection
nbothCreate a rule
erulesEdit the selected rule
drulesDelete the selected rule and its fired alerts (confirm with y)
SpacerulesEnable / disable the selected rule
Spacefired alertsSelect / deselect the alert
afired alertsSelect all / none
Enterfired alertsAcknowledge the selected alerts (or the one under the cursor)
cfired alertsClear (delete) the selected alerts (confirm with y)
crulesDismiss the notification test results
tbothSend a test notification to every channel

Any key other than y cancels a pending delete or clear. Clearing removes the fired alert only; if the rule is still breaching it fires again on the next evaluation. In the rule form, Esc cancels. See Alerts for what each rule type does.

Services View #

One sub-section per custom source: a status strip, the current value of each metric, and a history chart for the selected metric.

KeyAction
Tab / Shift+TabNext / previous source
↑ / ↓ or j / kChoose which metric to chart

History Charts #

The CPU, Memory, Disk, Network, Hardware, Process and Services views have a history chart. Use < / > to step through the ranges (by default 1h, 6h, 24h, 7d, 30d; set your own with history_ranges in [tui]), or r to pick dates. Longer ranges use coarser points, from 1 minute for an hour up to 6 hours for 30 days.

Status Bar #

Debug Mode #

bewitch -debug

Adds a scrollable console at the bottom of the screen with timestamped diagnostics: data fetches, cache hits and misses, view switches, errors and pin operations.

KeyAction
{ / }Scroll the console up / down
( / )Shrink / grow the console

Layout #

The dashboard switches to a multi-column grid on terminals wider than 120 columns.