Skip to content

Monitoring and alerts

Production

flowchart TB
    WD[Host watchdog<br/>systemd timer, every minute] -->|problem once,<br/>recovery once| T[Telegram]
    WD -->|heartbeat every 30 min| W[Waitcher]
    W -->|home, API health, TLS<br/>on both sites| S[awesome.byst.re<br/>aitesters.byst.re]
    W -->|missed heartbeat or<br/>failing check| A[Waitcher alerts]

Production runs no metrics stack. Grafana left it in lean monitoring phase A, cAdvisor on 30 November 2026, and Prometheus, Alertmanager, Node Exporter and Blackbox Exporter in phase C (December 2026). Two things replace them:

  • The host watchdog (below) watches the containers, OOM kills, disk, memory and backups from inside the VPS, and reports to Telegram.
  • Waitcher checks the public sites from outside. The monitors are defined in owned-sites-monitoring/awesome-localstack/waitcher.json (project "Awesome LocalStack", environments production and aitesters):
Monitor Target Interval
home HEAD / on both sites 30 min
health GET /actuator/health contains "status":"UP", both sites 5 min, alert after 2 failures
tls certificate expiry, both sites 6 h
login browser journey signing in on awesome.byst.re 30 min (paused)
watchdog heartbeat sent by the host watchdog (dead-man check) 30 min

Change them with waitcher deploy plan / apply in that folder.

The deploy's verify role also requests the nine public routes directly: login, the five OpenAPI documents and the delivery micro-frontend (/mfe/delivery/remote.js) on awesome, and login and OpenAPI on aitesters.

The services still publish metrics at /actuator/prometheus (internal only; the gateway blocks other actuator routes). Nothing scrapes them in production. The fault-injection lab and the broker check read individual values from them.

Logs and correlation ids

Logs say what went wrong. Every request carries an X-Request-Id and a W3C traceparent from the gateway onwards. The gateway and the edge write one JSON access-log line per request (ids, status, upstream, timings), and on the server the services log ECS JSON. There is no log store: logs stay in Docker's rotated container logs and are searched with docker compose logs. How to find everything about one request: Tracing a request.

Host watchdog

awesome-watchdog.timer runs /usr/local/sbin/awesome-watchdog every minute (no resident process) and sends to the owner's Telegram bot and chat:

Check Reported after
a container of docker-compose.server.yml missing, exited or restarting 2 runs
a container unhealthy (Docker healthcheck) 3 runs
a container restarted within 10 minutes; a one-shot exited non-zero 1 run
OOM kill: Docker oom event, VPS-root or container cgroup memory.events immediately
disk 85 % / 90 %, inodes 92 % 1 run
MemAvailable below 300 MiB 10 runs
newest backup older than 26 h, restore check older than 8 days 1 run
backup or restore-check unit failed (OnFailure=) immediately

Each problem is reported once (PROBLEM:) and its recovery once (RESOLVED:). Deployments pause only the container checks, for at most 15 minutes.

Dead-man check. With watchdog_waitcher_heartbeat_token set (Vault, the wh_ token of the watchdog heartbeat monitor), a run sends start and success to Waitcher at most once every 30 minutes. It sends failure when a check could not run or Telegram delivery failed. Waitcher alerts when the heartbeats stop, so a dead VPS or a stopped timer is noticed on another channel.

There is no local monitoring overlay: k6 runs report to the console.

Background and the history of each phase: Production monitoring plan.