Repository navigation
WatchLog v0.9.0
WatchLog 0.9.0
Linux servers. Install one command on a server and WatchLog shows everything it runs: every
systemd service, every process group (a pm2 app, a PHP-FPM pool, a Go binary, a jar or a script
started by hand, in any language) and every container, with their crashes, exit codes and OOM
kills from the kernel, alerts that say why, logs on demand and the network between them
(Linux servers).
No code changes, no exporters.
Docker fleets become Server fleets and keep their history, tokens, rules and bill: the
upgrade migrates them by itself. Their 0.8 agents keep working; the 0.9 agent adds services
and processes. Monitoring stays free in every edition.
What's new
- Server fleets (ADR-207). Two kinds of cluster: Kubernetes and Servers. The sidebar of a
Server fleet says Servers and Workloads; 0.8's Hosts and Containers addresses redirect.- Servers: every server with its CPU, memory and disk, how many services, process
groups and containers it runs, and what needs attention, problems first. - A server: its OS, kernel, systemd and Docker versions; its resources; one table of its
workloads, process groups under the service they run in, with ports and restarts; its
events; who it talks to. - A workload: a service's or process group's last hour of exits and restarts from the
kernel, its releases marked, what it runs in or holds, its connections, its log on demand
and probable cause: likely the release, its memory limit, a dependency or its CPU limit,
with what was checked. - Workloads lists every workload of the fleet, all three sources.
- Phones: every page as cards.
- Servers: every server with its CPU, memory and disk, how many services, process
- The agent's server mode (ADR-208, ADR-210): systemd's units over D-Bus with each unit's
cgroup (CPU, memory againstMemoryMax, throttling atCPUQuota, tasks, I/O, restarts); the
processes grouped by your rules, then pm2, supervisord, PHP-FPM, gunicorn and uwsgi, Java, the
script and the executable; every exit's code or signal and OOM kills from one eBPF program;
connections attributed to the service or group that opens them; listening ports. Command
lines, arguments, environments and process ids never leave the server. About 490–680 series
a server, 7–10 MB a day on Cloud, less than a Kubernetes node. - Install (ADR-209): one command (
curl … | sudo sh), a deb, an rpm ordocker run. The
agent runs as the userwatchlogwith five capabilities, not root; checksums always, and
the release's cosign signature whencosignis installed.--upgradeand--uninstall.
Containers show through Docker'sdockergroup or, on Podman, through Podman's API socket,
which the install gives to the groupwatchlog(--no-dockerleaves either out). Tested on
Ubuntu 24.04, Debian 12 and Rocky 9 with SELinux and Podman. - Process-group rules: your own names, per fleet, under its settings, with a preview of a
command line in the browser; the agents pick them up within a minute. - Applications on servers (ADR-212): PostgreSQL, MariaDB and MySQL, Redis, MongoDB,
RabbitMQ, Kafka, nginx and Traefik installed with apt or dnf are offered by their unit's name
and read by the server's own collector on loopback. - New: PHP-FPM (PHP-FPM):
busy and idle workers, requests waiting, pm.max_children reached, requests a second and
request time, from each pool's status page over FastCGI; three default alerts. - Alerts (ADR-213): nine default rules for servers: a service failed; a service or process
group crash-looping; an OOM kill; a process group gone; a service at its memory limit or
CPUQuota; the server's memory. Existing organizations get them by themselves. - Logs on demand on servers: a service's journal, a pm2 app's or supervisord program's log,
redacted on the server, never stored. - Right-sizing for services with a
MemoryMaxorCPUQuota. - Egress watch and What changed include services and process groups.
- API and MCP:
GET /clusters/:id/servers, a server, its workloads and one workload, and
GET/PUT /clusters/:id/process-rules; MCPget_serverandlist_workloads(Kubernetes
too). The 0.8 Docker routes keep answering, for containers.
Changed
- The dashboard polls less, in every edition, on Kubernetes clusters and Server fleets.
Pages and panels that refresh pause while their browser tab is hidden and refresh as soon as
it is visible again. Each refresh comes 20 % earlier or later at random, so tabs opened
together don't ask in step, and the next one is planned only once the last one finished. - "Busy, retrying…" instead of an error. When the server answers 429, or a 503 that clears
by itself, a page keeps what it shows, says "Busy, retrying…" in the top bar, and tries again
(after 2, 4, 8 … up to 30 seconds, never sooner than the server's Retry-After). - Static files for a CDN. The web image serves
index.htmland the dashboard's routes with
Cache-Control: no-cache, and its hashed files a year, as before. A missing hashed file is a
plain 404. - Docker fleet is now Server fleet everywhere: the API answers
kind: "server"and accepts
dockeras an alias of it, as do MCP tools' arguments.
The live demo (demo mode only)
- One answer for every visitor. In demo mode every visitor is the same read-only viewer, so
the backend shares its answers: a page's data is asked of VictoriaMetrics once every 15
seconds (demoCache.seconds, 5–60), however many people look, and identical requests in
flight share one call, in a 64 MiB cache (demoCache.maxMb). Community and Cloud never share
answers across requests. - Busy, not broken. Past 16 cache misses to metric-backed pages at once
(demoCache.maxUpstream), the next is answered at once with 503 and Retry-After. - Groups behind one address can start 60 demo sessions a minute (20 before).
Measured
- 1,000 servers on one Cloud installation: the Cloud Compose kit in a 4-core, 11 GiB test
VM; 1,000 agents in 250 Server fleets of 200 organizations, each sending a real 0.9 server
agent's series (503, from the live demo's server) every 15 seconds, held for 10 minutes:
40,000 writes and 40,000 heartbeats, all accepted; a write's p95 12 ms, a chart's 9 ms, the
overview's 326 ms. The backend used 27 % of a core on average (53 % at most), PostgreSQL
18 %, each VictoriaMetrics under 450 MiB; the alert worker's cycle took 8 seconds for 250
fleets. Storage: about 8.5 MB a server a day. - End to end on Ubuntu 24.04, Debian 12 and Rocky 9: the install script, the deb and the
rpm installed, upgraded and removed; then, against a running WatchLog, a release followed
by a real crash loop named as the cause and alerted on, logs on demand, Egress, What
changed's series, and PHP-FPM and Redis found and monitored.
Upgrading
No manual steps. One database migration turns Docker fleets into Server fleets and keeps their
ids, so tokens, rules, alerts, history and billing carry over; the series keep their labels.
Kubernetes: helm upgrade … --version 0.9.0 --reuse-values. Docker Compose: set
WATCHLOG_VERSION=0.9.0, then docker compose pull && docker compose up -d.
Agents: 0.8 agents keep sending containers and host metrics to their fleet. To see a server's
services and processes, install the 0.9 agent with the command under the fleet's Add
servers, or run its new docker run command (it adds --cgroupns host, the D-Bus socket and
three capabilities).
Changes since v0.8.2
Features
- exits in their own pid namespace, and --ebpf-cgroup-scope=self for a server inside a container (ADR-211) (agent)
- adding servers: one command, deb, rpm or Docker; services and process groups in the checklist; server troubleshooting (web)
- server installs (script, deb, rpm, docker run with ADR-209's mounts), services and process groups in the checklist, get_server and list_workloads (backend)
- right-sizing links a service's hint to its page on the server (web)
- right-sizing for servers' services with a MemoryMax or CPUQuota (backend)
- logs on demand on the workload page: a service's journal, a pm2 app's or supervisord program's log (web)
- logs on demand for a server's service, process group or container; refused in support sessions like other logs (backend)
- logs on demand on servers: a service's journal, pm2's and supervisord's log files, containers through Docker (agent)
- Egress and What changed name and link servers' services and process groups (web)
- Egress and What changed for servers' services and process groups (backend)
- the workload page's probable-cause card, and cause links to servers and their workloads (web)
- probable cause for a server's service or process group: a release, its memory limit, a dependency, its CPUQuota; alerts on them get it too (backend)
- a service that is one binary counts its releases (watchlog_service_releases_total), for probable cause (agent)
- the server alert rules' sentences and metric names; the rules group says Servers (web)
- default alert rules for servers: a service failed, crash loops, OOM kills, a group gone, limits, memory (backend)
- PHP-FPM on the Applications pages: name, logo, alert metrics, page strings and reasons (web)
- applications on servers: installed services discovered by name and port, read on loopback; the PHP-FPM integration (page, keys, rules, reasons) (backend)
- the PHP-FPM integration: a pool's status page over FastCGI (TCP or socket), as watchlog_phpfpm_* series (agent)
- Server fleet pages: Servers, a server with its workloads grouped by unit, a workload's exits timeline, Workloads for both kinds, process-group rules, phones (ADR-207) (web)
- every workload of a Server fleet on GET /servers?workloads=1, for its Workloads page (backend)
- process-group rules per Server fleet: read, replace as admins, served to the agents with an ETag (ADR-207) (backend)
- fetch the fleet's process-group rules every minute and group by them first (agent)
- Server fleet routes: servers, a server, its workloads of the three sources, one workload (ADR-207) (backend)
- a process group's naming rule (pm2, php-fpm, script…) as the by label of its instances (agent)
- the server's OS, kernel and systemd version as watchlog_server_info (agent)
- catalog keys for servers' systemd services (unit.) and process groups (process.) (ADR-208) (backend)
- counters still at zero aren't sent for process groups and services (ADR-208's budget) (agent)
- GET /install.sh, the server install script with this install's address and release (ADR-209) (backend)
- installing on a server: one script, deb and rpm, systemd units as user watchlog with five capabilities (ADR-209) (deploy)
- a unit's exits by its cgroup's name and systemd's parentage, so restarts between scrapes all count (ADR-210) (agent)
- a server's connections and listening ports by service and process group (ADR-210) (agent)
- exit codes and OOM kills from eBPF, for services and process groups (ADR-210) (agent)
- process groups on servers, any language, by rules; starts, exits, releases and OOM kills (ADR-208) (agent)
- server mode's systemd services, from D-Bus and each unit's cgroup (ADR-208) (agent)
- Server fleets in the UI: the server kind, its icon, and servers instead of Docker hosts (ADR-207) (web)
- Server fleets replace Docker fleets: the kind is server, docker an input alias (ADR-207) (backend)
- demo sessions 60 a minute per address, and the demo viewer looked up once per 10 s (ADR-206) (backend)
- polling pauses in hidden tabs, spreads by ±20 %, and a busy answer keeps the data (ADR-206) (web)
- demoCache settings in the Helm chart and the Compose file (ADR-206) (deploy)
- the demo's shared answer cache, single-flight and load shedding (ADR-206) (backend)
Fixes
- /install.sh goes to the backend, not the dashboard's HTML, so
curl <WatchLog>/install.sh | sudo shworks behind the web container (Compose, Helm, Cloud) (web) - Podman servers show their containers: with no docker group, the install script and the packages give Podman's API socket to the group watchlog (a podman.socket drop-in), say it's root-equivalent, and remove it on uninstall or purge; --no-docker leaves it out
- logs on demand for a server's services and process groups: the poll kept only requests that name a container, so theirs were dropped (agent)
- pm2 apps run by an account outside /home (www-data's /var/www) are named from their pid files, and their logs found: homes come from /etc/passwd too (agent)
- PHP-FPM's default alerts have their lines in the connect drawer (web)
- a PHP-FPM pool with its status page off is a setting to turn on, not an outage (agent)
- lint on Linux (the exit reader's unchecked Close) and the Servers test app's require
- index.html revalidated on every load; a missing asset is a 404, never HTML cached a year (ADR-206) (web)
Install
Kubernetes (backend, web, agents in one chart):
helm install watchlog oci://ghcr.io/watchlog-light/charts/watchlog --version 0.9.0 \
--namespace watchlog --create-namespaceDocker hosts: see the install guide.
Verify
Images and charts are signed with cosign (keyless, GitHub Actions OIDC):
cosign verify ghcr.io/watchlog-light/agent:0.9.0 \
--certificate-identity-regexp '^https://github.com/watchlog-light/watchlog/\.github/workflows/release\.yml@refs/tags/v' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com