interval
How often the machine is read.
- Type
- duration
- Default
- 2s
User guideWayseer 0.37.0Contents
The localhost module shows the machine Wayseer runs on: the host, its CPUs, memory, disks, filesystems, network interfaces and processes, with metrics for each. Where the machine runs systemd, it adds the system units with their dependencies, and journal entries as events; on Windows, it adds the services. On Linux it reads /proc, /sys, systemd over D-Bus, and journalctl; on macOS, the system's own counters (below); on Windows, its own calls (below). It needs no privileges and changes nothing. It runs on Linux and macOS, and on Windows from 0.28.0.
modules:
- kind: localhost
name: this-machine
The default config written on first run has these lines already, so a first run opens on this machine (install). That is enough. The options below go under options:
modules:
- kind: localhost
name: this-machine
options:
processes: false # no processes, only the machine
journal: err # only errors and worse from the journal
units: [service] # only services, not sockets or timers
interval
How often the machine is read.
history
How far back machine series are kept, 10 intervals to 24h.
processes
List processes as entities.
process_history
How far back per-process series are kept, up to history.
commands
Show command lines, which can hold secrets.
root
Where proc, sys and etc are found, such as a container's mount of the host.
units
Systemd unit types listed, [] for none.
journal
Least severe journal priority sent, emerg to debug, or off.
journal_backlog
Journal entries sent from before the start, up to 1000.
keep_stopped
How long a unit that stopped stays listed, up to 24h.
connections
List network connections and listening sockets, on Linux.
connection_limit
Remote addresses listed, busiest first, 1 to 5000.
connection_keep
How long a remote stays listed after its last connection closes, up to 1h.
geoip
IP databases that place and name public remote addresses.
geoip.city
Places an address and names its city and country.
geoip.asn
Names the network an address is in.
place
Where this machine is, which the host and its processes take on the map.
place.lat
Degrees north, -90 to 90.
place.lon
Degrees east, -180 to 180.
commands shows each process's full command line. A command line can hold a password passed as an argument, so set commands: false on a shared screen. root suits running in a container with the host's filesystem mounted, such as at /host.
host
hostname, kernel, os, cores, memory, booted, ip
localhost/cpu
index
localhost/memory
total, swap_total
disk
size, model, rotational, removable
localhost/filesystem
type, mounts, size
interface
mac, mtu, address
process
pid, ppid, user, started, command, local.pid
localhost/unit
unit, type, description, state, sub_state, file_state, result
local.pid is set only when root is /, as this machine's processes are. The local-process identity rule matches it to Wayseer's own processes.
Every entity also has a group, which Topology draws it in: hardware for the host and its parts; a unit with four or more processes under its own name, with them; services for the other units with processes, and theirs; systemd for units with none; and processes for processes in no unit, which is all of them on macOS.
memory, total, swap_total and both sizes are in bytes, and Detail shows them so, as 15.6 GiB. Filter on them the same way: /kind:host memory>=32GiB.
A filesystem is warn at 90% used and crit at 95%, counted as df counts it. An interface whose link is down shows as down.
Units. A unit shows once it has been seen running. A unit that stops stays on screen for keep_stopped, and a failed one stays until it recovers.
Each change of a unit's state is an event on it. A unit's dependencies are its links.
Journal. Entries at journal priority or worse show as events in Stream and on the Timeline, on the unit they are about or came from, else on their process, else on the host. The last journal_backlog entries from before Wayseer started are sent too. A machine without systemd, or a journal Wayseer cannot read, shows as a note in the module's health, not as an error. To read the whole journal, add your user to the systemd-journal group, which your distribution may call something else.
From 0.35.0, on Linux, connections: true adds the machine's network connections. Wayseer reads TCP and UDP sockets from the kernel, as ss does, and finds the process that holds each one.
localhost/remote entity, with attributes address, scope (public, private, loopback, link-local or multicast), ports, protocols and connections. Its group is network.talks_to edge joins each process to the remotes it talks to. The edge carries TCP's bytes per second, so Flow shows where the traffic goes. It has bytes_out, bytes_in, connections, ports and protocols attributes.net.receive and net.transmit are recorded for processes and remotes too.listens attribute. A TCP listener opening or closing is an event. One that listens on all interfaces (0.0.0.0 or [::]) is a warning.The connection_limit busiest remotes are listed, ranked first by traffic, then by connections. A remote whose connections have all closed stays for connection_keep, at rest. Without root, other users' sockets are counted on the host rather than on their processes. Connections are read on Linux only, and only when root is /. Elsewhere the module's health says so.
Places. Wayseer does not ship an IP-location database, but it reads one you download, in MMDB format:
geoipupdate keeps it current.mkdir -p ~/.local/share/geoip && cd ~/.local/share/geoip
m=$(date +%Y-%m)
curl -fLO https://download.db-ip.com/free/dbip-city-lite-$m.mmdb.gz
curl -fLO https://download.db-ip.com/free/dbip-asn-lite-$m.mmdb.gz
gunzip -f dbip-*-lite-$m.mmdb.gz
ln -sf dbip-city-lite-$m.mmdb city.mmdb && ln -sf dbip-asn-lite-$m.mmdb asn.mmdb
options:
connections: true
geoip:
city: ~/.local/share/geoip/city.mmdb
asn: ~/.local/share/geoip/asn.mmdb
city, country, asn and organization attributes. Its group becomes its organization, so Topology gathers a provider's addresses together. Private and loopback addresses are never looked up.location_source names the database each remote's location data came from, as the database's license asks.place, and the host and its processes appear there on Geo, with a line to each placed remote they talk to:``yaml options: place: {lat: 52.37, lon: 4.89} ``
cpu.utilisation
Share of CPU time spent busy; for a process, its share of the whole host.
hostlocalhost/cpuprocessmemory.utilisation
Share of memory not available to new work.
hostlocalhost/memorymemory.used
Memory not available to new work.
localhost/memorymemory.available
Memory available to new work without swapping.
localhost/memoryswap.used
Swap in use.
localhost/memorydisk.read
Bytes read.
diskdisk.write
Bytes written.
diskdisk.utilisation
Share of time with I/O in flight.
diskfs.used
Space used.
localhost/filesystemfs.utilisation
Share of space used, as df reports it.
localhost/filesystemnet.receive
Bytes received.
interfacenet.transmit
Bytes sent.
interfacememory.rss
Resident memory.
processMachine metrics are kept for history, and process metrics for process_history.
A Mac shows the same host, CPUs, memory, filesystems, network interfaces and processes, with the same metrics, with these differences:
disk entities and no disk.* metrics; each filesystem links to the host. Detail and the palette offer only the metrics a Mac has./System/Volumes/Data, is kept: it holds your files.units, journal, journal_backlog and keep_stopped do nothing.root still reads a Linux machine's copied /proc and /sys, as on Linux.From 0.28.0, Windows shows the host, its CPUs, memory, volumes, network interfaces, processes and services, with the same metrics, and the default config lists the module there too. A config 0.27 wrote on Windows has its entry commented out; remove the # before its two lines. The differences:
disk entities and no disk.* metrics; each volume links to the host.localhost/filesystem named by its letter, such as C:\. DVD drives, USB sticks and network shares are left out. A drive BitLocker keeps locked is listed, with its usage unknown.swap.used.os is the edition and release, as Settings shows them, such as Windows 11 Pro 24H2, and kernel is the build, such as 10.0.26100.service units; drivers are left out. Each is named as Windows names it, such as Spooler, with its display name as description and its startup type as file_state, such as Automatic (Delayed Start). The services it depends on are its links, a load-order group counting as each service in it, and the process it runs in is a member of it.result, or down, "should be running", if it should be.journal and journal_backlog do nothing. units: [] turns services off; the other unit types don't exist on Windows.