Cloudverg Console
PricingDocsSign in

VergVitals

How VergVitals watches your servers

VergVitals tells you when a server is about to have a bad day: a disk that is filling, memory that has run out, a service that has failed. It uses the agent that already runs on every node for VergMesh, so there is nothing to install, no exporters, no dashboards to build and no alert rules to write or maintain. Open it and every node is there, worst first.

What the agent reads

With every report it already sends (every 30 seconds), the agent adds the vital signs of the machine: the number of cores and the load averages; total and available memory and swap; for each real filesystem (ext4, xfs, btrfs, zfs, APFS and similar, at most 12) its mount point, type, size, space used and the share of inodes used; when the machine started; how many programs the kernel has stopped for lack of memory since then; the names of failed systemd services (at most 10); whether a restart is waiting; how many security updates are waiting, where the distribution keeps that count in a small file (Ubuntu does); and whether the clock is synchronized.

Three more things are read on a Linux machine, each kept for a while so it costs almost nothing. Containers, every 10 minutes and only where Docker or Podman is installed: how many are running, and the names, at most 20, of containers that are restarting, that stopped with a non-zero exit code in the last hour, or that report themselves unhealthy. No images, labels, environment, ports or commands. If the Docker daemon is slow the agent gives up after 20 seconds and tries again later. Updates and restarts on other distributions, once an hour: on dnf and yum systems (Red Hat, Rocky, Alma, Fedora, CentOS, Amazon Linux) and on zypper systems (SUSE), the number of pending updates and security updates from the package manager's cached data, and whether a restart is needed. It never refreshes repositories or touches the network. Debian and Ubuntu are read as before. Who is using the machine, once a minute: the three programs using the most memory and the three using the most processor, by program name only, as a share of the whole machine, and only those at 1% or more. On a Mac only the programs are read, from the process table.

It never reads the contents of any file, environment variables, command lines, logs, users or network traffic. A machine that lacks a tool, or a distribution that does not expose something, simply leaves that line out. The slow items, systemd and the clock, are read at most every 10 minutes, and collecting adds a few tens of milliseconds to a report. On a Mac the agent reports load, memory, swap, the start time and the disks, and nothing else.

Sizes are what df reports for a normal user: the size is used plus available, so the percentage matches the one you see on the machine. You can read the agent: verg-agent.sh.

What it checks, and the defaults

CheckOpens whenDefault
Disk spaceA filesystem is nearly fullWarning at 85%, a problem (the kind that pages) at 95%. It closes 5 points lower.
Disk forecastA filesystem is filling at a steady paceWarning when it will be full within 7 days
InodesA filesystem is running out of file slotsWarning at 90%
MemoryLittle memory is left for programsUnder 5% available for 5 minutes
CPU loadMore work than the processor can doAbove 2 per core (5 minute load) for 10 minutes
Failed servicesA systemd service is in a failed stateA warning for each service, named
Out-of-memory killsThe kernel stopped a program because memory ran outA warning, closed after a day without another
ClockThe clock is not synchronized with a time serverA warning after 10 minutes
ContainersA container is restarting, reports itself unhealthy, or stopped with an errorA warning that names it. A container that is still restarting 10 minutes later is a problem. It clears after 10 minutes without being listed.

When memory or load opens an incident, the incident says which programs were using the most at that moment: "At the time, the largest were postgres (41% of memory), ...".

Each is a VergMind incident, one for each node and check, so your alert channels, acknowledge, notes, "what changed just before" and the incident summary all work as they do for a monitor. An incident closes by itself when the condition clears, a few points below where it opened, so a value hovering at the line does not flap. Checks that need to last (memory, load, the clock) restart their clock after a gap in reports. A maintenance window that covers every monitor also holds these alerts until it ends.

Findings that are not incidents

A restart that has been waiting for more than 7 days, and security updates that have been waiting for more than 14 days, are shown on the fleet and node pages, and counted in the zero-trust checks of VergShield. They do not wake anyone. A node whose agent is too old to report vitals shows Upgrade the agent: sudo verg-agent upgrade, and is never shown as healthy.

The disk forecast

For each filesystem VergVitals looks at the last three days and fits a trend with the median of all pairwise slopes, which a few odd samples cannot bend. It needs at least 6 hours of reports. If the filesystem is growing steadily and would be full within 7 days, it opens a warning that says so in words: "fills in about 3 days at this rate". It stays quiet for a disk that is flat or shrinking, and for a single large jump such as a restore or a copy: when one jump makes up most of the growth it is set aside, and only the steady part counts. Once open, it closes when the date moves clearly out of reach.

Planned work

For work you are doing on a machine, open its page and start planned work for 1 hour up to 7 days, with a reason. Health incidents for that node are held, as a maintenance window holds them for monitors, and anything already open stays open. When the time is up, or when you end it, a problem that is still there opens its incident then. Through the API: POST /v1/vitals/nodes/{node}/planned-work with hours and reason, and DELETE on the same address.

Incidents and pages

A health incident links to its node's page, and the node's page, the node's page in VergMesh and the fleet table all list that node's open incidents, whatever raised them: health, a lost path, the node going quiet, an exposed port or a slow lane.

Change the defaults, mute, ignore

Under VergVitals, Settings, change every threshold for the workspace. On a node's own page, change them for that machine, mute a check for it (nothing opens, and an open incident closes), or list mount points to ignore, for a disk that is meant to be full. Leave a number empty to inherit.

History

One sample a minute is stored and kept for 48 hours, then one every 5 minutes for as long as your plan keeps history: 7 days on Free, 14 on Starter, 30 on Team and 90 on Business. A node's page draws load per core, memory in use and every disk over 24 hours, 7 days and the full period.

Prometheus and Grafana

A team that already runs Grafana can scrape the same data. The endpoint needs a workspace API key with read access and answers in the Prometheus text format.

curl -s https://api.cloudverg.com/v1/vitals/metrics -H "Authorization: Bearer $VERG_API_KEY"
scrape_configs:
  - job_name: verg
    scheme: https
    metrics_path: /v1/vitals/metrics
    authorization:
      credentials: vgk_...
    static_configs:
      - targets: ['api.cloudverg.com']

Metrics carry the labels node and network: verg_node_load1, verg_node_load5, verg_node_load15, verg_node_cpus, verg_node_memory_total_bytes, verg_node_memory_available_bytes, verg_node_swap_used_bytes, verg_node_boot_time_seconds, verg_node_oom_kills, verg_node_failed_units, verg_node_reboot_required, verg_node_security_updates, verg_node_clock_synchronized, verg_node_containers_running, verg_node_containers_restarting, verg_node_containers_unhealthy, verg_node_up, and for each filesystem (labels mount and fstype) verg_node_filesystem_size_bytes, verg_node_filesystem_used_bytes and verg_node_filesystem_inodes_used_ratio.

API

curl -s https://api.cloudverg.com/v1/vitals/nodes -H "Authorization: Bearer $VERG_API_KEY"

GET /v1/vitals/nodes lists every node with its latest numbers, open incidents and findings. GET /v1/vitals/nodes/{node} adds the forecast for each filesystem, and ?hours=24 adds the history. Each node also carries containers, top_memory, top_cpu, package_manager, planned_work and open_incidents. The node is its id, or its name when that is unique. The full list is in the API reference.

For example, a 120 GB disk with 20 GB free that has grown 6 GB a day for three days is forecast to be full in about 3 days. You hear about it then, not at the outage.