F Floweon Hyperflow Learn

Monitoring, Email Alerts & Zero-Downtime Updates

Monitor cluster metrics with Prometheus, configure email alerts in the web UI (SMTP relay), and use scheduled zero-downtime updates where VMs continue running.

8 min • 2026-12-06

Hyperflow provides native telemetry endpoints for external monitoring, a full web interface for Email Alerts & SMTP Relay, and manual as well as scheduled Zero-Downtime Updates on the System & Updates tab.

Prometheus /metrics & /health#

Both endpoints are reachable without authentication so that load balancers and Prometheus can query them directly.

  • GET /health: Liveness/readiness check with the version pinned at process startup (from VERSION), git_commit, uptime_seconds, database status, and plugins_active. Using the pinned boot version, the web portal reliably detects after an update when the new backend process is active.
  • GET /metrics: Prometheus metrics in text format:
Metric Meaning
hyperflow_nodes_total Registered hypervisor nodes
hyperflow_nodes_online Reachable nodes
hyperflow_vms_total All VMs
hyperflow_vms_running Running VMs
hyperflow_plugins_active Active plugins
hyperflow_cluster_cpu_usage_pct Cluster CPU utilization in percent

Email Alerts & SMTP Relay#

Under the dedicated navigation item E-Mail Alerts (E-Mail Alerts & SMTP Relay), you configure notifications completely through the web interface (SUPER_ADMIN):

  • SMTP server & security: Hostname, port (for example, 587, 465, or 25), security mode (STARTTLS, SSL/TLS, or NONE for internal relays), optional username/password, and sender address (From).
  • Recipient selection: Select existing Hyperflow users or add any additional email addresses.
  • Event filters: Selectively enable which events trigger an email—including Host Offline/Online, VM state changes, maintenance/evacuation, backups, and auto-update reports.
  • Test email & delivery history: With Test-E-Mail senden (Send test email), you test the SMTP connection immediately. The Versand-Verlauf (E-Mail Alerts) (Delivery history (Email Alerts)) card logs all sent or failed notifications and can be cleared when needed.

The configuration is stored persistently and replaces the former .env-only setup (existing .env variables SMTP_* continue to serve as a fallback on first startup).

Method & path Description
GET /api/v1/alerts/config Read current SMTP, event & recipient configuration
PUT /api/v1/alerts/config Save email alert configuration
POST /api/v1/alerts/test Send a test email
GET /api/v1/alerts/history Retrieve delivery history
DELETE /api/v1/alerts/history Clear delivery history

Versioning#

The running version is stored in the VERSION file in the installation directory (currently 1.10.8) and is displayed through /health and in the user interface.

One-click & zero-downtime updates#

The card GitHub 1-Klick System-Update & Synchronisation (GitHub one-click system update & synchronization) under System & Updates offers three actions:

Button Effect
Auf GitHub prüfen (Check on GitHub) Runs git fetch origin main --tags, compares the local state with origin/main, reads the new version from VERSION, and shows the latest commits as release notes.
Dieser Host (Git Pull) (This host) Updates only the current host.
Alle Cluster-Hosts Aktualisieren (Update all cluster hosts) Updates this host and distributes the new state to all connected cluster hosts.

Running VMs survive Hyperflow updates#

To ensure that running virtual machines are never terminated during a Hyperflow update or a systemctl --user restart hyperflow.service, Hyperflow takes two protective measures:

  1. Systemd drop-in (KillMode=process): On service start and before every update, Hyperflow automatically creates ~/.config/systemd/user/hyperflow.service.d/10-keep-vms-alive.conf (or /etc/systemd/system/hyperflow.service.d/10-keep-vms-alive.conf) with KillMode=process and runs daemon-reload. As a result, systemd sends SIGTERM only to the main uvicorn process during a restart, not to running QEMU processes.
  2. Isolated VM units: Standalone QEMU VMs are started in their own transient units via systemd-run --service-type=forking --property=KillMode=none and run completely decoupled from the Hyperflow control plane.

Update sequence#

scripts/update-hyperflow.sh works in four steps:

  1. Local changes to versioned files are saved with git stash, followed by git pull --ff-only.
  2. Python dependencies are updated in .venv.
  3. Database migrations run through init_db().
  4. KillMode=process is verified and the service restarts with a delay (systemctl --user restart hyperflow.service, or the system unit / standalone restart).

Local changes

If the state cannot be updated by fast-forward, the script resets the checkout with git reset --hard origin/main. Custom modifications to the code therefore belong in plugins, not in the Hyperflow checkout.

After the update, the user interface polls /health and reloads the page automatically as soon as the new boot version or the new commit is running.

Automatic updates (Auto-Update)#

Under Automatische Updates (Auto-Update) (Automatic Updates), you schedule recurring updates without manual intervention:

  • Interval & time: Daily or weekly on a chosen weekday at the desired time.
  • Scope: Optionally extend to all cluster peers and automatically create a configuration backup before updating.
  • Reporting: Optionally send an email report after a successful or failed auto-update via E-Mail Alerts.
  • Immediate run: Test or start the auto-updater manually at any time via Jetzt ausführen (Run now) (POST /api/v1/system/auto-update/run-now).

Cluster update#

During a cluster update, Hyperflow transfers the code (VERSION, backend, frontend, plugins_bundled, scripts) as an archive over SSH to each peer. If this fails, it calls POST /api/v1/system/update/apply on the peer. It then synchronizes the cluster database and restarts the local service last.

Method & path Description
GET /api/v1/system/update/check Check for a new version
POST /api/v1/system/update/apply Update this host
POST /api/v1/system/update/cluster Update all cluster hosts
GET\|PUT /api/v1/system/auto-update Get / save auto-update schedule
POST /api/v1/system/auto-update/run-now Run scheduled update immediately