# Server metrics

> CPU, memory, disks, load, network, temperatures, processes, Docker containers and systemd services of the servers your private nodes run on - what is collected, how to turn on processes, Docker and systemd, and what the dashboard shows.

Every [private node](https://docs.monitorly.cloud/nodes/install.md) also reports the server it runs on, every 30 seconds, at no extra cost. A [server check](https://docs.monitorly.cloud/servers/rules.md) turns those reports into incidents, with the same alerts and escalation as other checks. Platform nodes report nothing.

## What is collected

Always, read from `/proc` and the file systems:

- CPU use and the number of cores;
- load average over 1, 5 and 15 minutes;
- memory and swap;
- network traffic in and out;
- uptime;
- use of each local disk, up to 32. Pseudo, container and network file systems are skipped.

Since the node of 2026-11-28, also:

- IO wait and steal;
- traffic, errors and drops of each network card, up to 16;
- reads, writes, busy time and queue of each whole disk, up to 16;
- pressure: how long tasks waited for CPU, memory and IO;
- temperature sensors, up to 16, where the server has them;
- inodes of each disk, and whether it turned read only;
- the OS, kernel and architecture, whether the server waits for a restart, processes killed for lack of memory, and a Raspberry Pi's under-voltage.

More sources, each turned on when you install the node:

- **Processes** (`--processes`, ticked by default in the install command): the 10 processes using the most CPU and the 10 using the most memory, with name, owner, CPU and memory. Command lines never leave the server; for an interpreter such as `python3` the node adds the script's file name (`app.py`). With this option the node's service can see other processes, as any local user can.
- **Docker**: state, health, restarts, exit code, CPU and memory of each container, up to 100.
- **systemd**: every failed unit, and the state of the units you name, up to 100.

Nothing is changed on the server: the node only reads. There are no custom metrics, logs or dashboards.

## Turn on Docker and systemd

Add the options to the install command. On the server:

```sh title="On the server"
curl -fsSL https://gw.monitorly.cloud/install.sh -o install.sh
sudo MONITORLY_JOIN_TOKEN=<join token> sh install.sh --processes --docker --systemd
```

| Installer option             | What the node reports                                                |
| ---------------------------- | -------------------------------------------------------------------- |
| `--processes`                | The top processes by CPU and memory                                  |
| `--docker`                   | Containers, through `/var/run/docker.sock`                           |
| `--docker=<socket or proxy>` | Containers, through another socket path or a read-only socket proxy  |
| `--systemd`                  | Every failed systemd unit                                            |
| `--systemd=<units>`          | Every failed unit, and the state of these units, comma-separated     |

From a workstation with the [CLI](https://docs.monitorly.cloud/cli.md), `monitorly node install` passes the same choices to the installer: `--docker`, and `--systemd failed` or `--systemd <unit,unit>`.

```sh title="On your workstation"
monitorly node install --ssh admin@web-1 --name web-1 --docker --systemd nginx.service,postgresql.service
```

The options are kept only until the next install: to update the node, run the installer again with the same options. Without them the node stops reporting processes, Docker and systemd.

### Docker access

Read access to the Docker socket is as powerful as root on that server. With `--docker` the installer adds the node's user to the `docker` group, and says so. To avoid that, run a read-only socket proxy, such as `tecnativa/docker-socket-proxy` with `CONTAINERS=1` and nothing else allowed, published on `127.0.0.1:2375`, and install with:

```sh title="On the server"
sudo MONITORLY_JOIN_TOKEN=<join token> sh install.sh --docker=http://127.0.0.1:2375
```

The node's user then gets no access to the socket. A node that is already enrolled needs no join token: `sudo sh install.sh --docker=http://127.0.0.1:2375`.

### systemd access

Units are read through `systemctl`, which asks systemd over D-Bus. Nothing is started, stopped or reloaded.

## In the dashboard

**Servers** lists the servers of your private nodes with CPU, memory, the fullest disk, load, containers, failed services and the time of the last report. Each server has:

- its OS, kernel, temperature and whether it waits for a restart;
- charts of CPU, memory, disk, load and network for the last 24 hours, 7 days and 30 days, with average and peak, and, from a node of 2026-11-28 or later, IO wait and steal, pressure, temperature, each disk's reads and writes and each network card's traffic;
- its disks with inodes, containers, services and top processes as last reported;
- its server check, the problems it sees now and its timeline of notices and restarts.

When the node could not read Docker or systemd in its latest report, the server page says so and shows what the node said. A server that has not reported for 3 minutes shows how long it has been silent.

## History

Raw reports and 5-minute points are kept 30 days, hourly and daily points 13 months. The 24-hour chart uses 5-minute points, the 7- and 30-day charts hourly points.

A report that cannot be sent is not stored on the node: the next one replaces it. Check results are different; they wait on disk while the node is offline.

## In the API

- `GET /api/v1/workspaces/{workspaceId}/servers`: every server of the workspace with its latest numbers.
- `GET /api/v1/servers/{nodeId}`: one server with its disks, containers and services.
- `GET /api/v1/servers/{nodeId}/series?range=24h|7d|30d`: the chart points.
- `GET /api/v1/servers/{nodeId}/device-series?kind=disk|interface|sensor|filesystem&range=24h|7d|30d`: the chart points of each disk, network card, sensor or filesystem.

They need a token with `nodes:read`. Fields: the [API reference](https://docs.monitorly.cloud/api/reference.md).

Servers count against the plan's private nodes, which start with the Solo plan ([Plans and limits](https://docs.monitorly.cloud/concepts/plans.md)).
