Moxon Metrics

Feature tour

What each part of Moxon Metrics does

A tour of the window, tab by tab, and of the parts that run in the background. It describes version 4.0 on Linux. Parts marked 4.0 are new in 4.0; everything else is also in Linux 3.3 and, unless noted, macOS 3.x.

  1. The window and its views
  2. Live
  3. Processes
  4. Network
  5. Wireless
  6. Topology
  7. Capture
  8. System
  9. History
  10. Terminal
  11. Machines
  12. Alerts
  13. Sharing and Prometheus
  14. Relay and phone
  15. The moxon command line
  16. What runs in the background

The window and its views 4.0

Live

The first thing you see: the state of the machine right now and over the last few minutes.

Processes

Network

Wireless 4.0

Topology

A map of each network the machine is on, built from what it can see and hear.

Capture 4.0

System

History

Terminal

In Linux 3.3 and 4.0, and the macOS 3.4 preview. On a server with the headless package, switch it on with moxon terminal on.

Machines

Alerts

AlertWhen
ProcessorAbove a level (default 90%) for several minutes
MemoryAbove a level of use (default 90%)
Disk spaceAny drive fuller than a level (default 90%)
TemperatureAbove a temperature (default 90 °C)
BatteryBelow a level while unplugged (default 15%)
PressureApps stalled on memory or disk for too long
Unusual activityFar from this machine's normal for that hour of the week (after 7 days of history)
Drive healthSMART warnings, wear and errors (daily reminder)
Data capsAt 80% and 100% of a monthly cap
New devicesSomething new joins a network this machine has known for a day or more

Each alert can go to desktop notifications, ntfy (free phone push), Telegram and email, with a repeat interval so a lasting problem doesn't flood you. The indicator in the top bar or menu bar shows processor and memory at a glance.

4.0 Alerts can also go by SMS (Twilio, or any provider that takes a web request) and WhatsApp (a Meta business account or Twilio). These use your own provider account, which charges per message, so they get a one-line summary, a daily limit and quiet hours (urgent alerts still go through), and fall back to email if sending fails.

Sharing and Prometheus

Relay and phone

The moxon command line 4.0

Installed with both 4.0 packages. On a server it is how you set everything up; on a desktop it is a quick way to check a machine.

CommandWhat it does
moxon statusThis machine at a glance, with --more or --all for detail and --json for scripts
moxon join <code>Join your relay account with a pairing code from another device (or --recovery with your recovery code)
moxon pairMake a pairing code to add another device
moxon devicesYour devices on the relay
moxon terminalSwitch terminal sessions on or off, ask each time or not, allow or deny devices, list and end sessions, read the log
moxon shareRead-only sharing on your network: on, off, or a new key
moxon serviceRun the agent as a system service for a user, with nobody signed in (headless; needs sudo)
moxon logsAgent and helper logs, with -f to follow
moxon verifyCheck that every part works; exits with status 1 if something doesn't

What runs in the background

PartRuns asJob
AgentYouTakes a reading every few seconds, keeps the history and checks the alert rules. When switched on, it also serves the read-only sharing page and Prometheus endpoint, and keeps the encrypted relay connection. In 3.3 these are separate services.
HelperAdministrator, read-onlyReads what only an administrator can: per-app network use, everyone's disk use, drive health, and what the network says. It accepts no input and changes nothing.
Capture 4.0Administrator, only when you start oneRuns tcpdump on one interface with a time limit, after you enter the password, and hands the packets to your app
Window and trayYouShows the agent's readings; closing the window leaves the agent running

With the headless package, the agent runs as a system service for the user you name, so it starts at boot without anyone signing in.