rcourtman 9f43a22fb1 Bound patrol-main session at 200 messages to stop unbounded disk growth
The patrol-main chat session was reused across every scheduled
Patrol run with no upper bound. After a month of runs the file
had grown to 16 MB / 3,593 messages, and every AddMessage
rewrote the whole file to disk — so the I/O cost per Patrol
run was scaling with total session age, not with the run's own
output. Across all chat sessions on this dev instance, the
ai_sessions directory hit 676 MB / 1,629 files.

The stateless-Patrol-input fix (commit 43760fb0d) stopped
loading the session back into the agentic loop, but Patrol
still wrote each run's messages to the session for the Pulse
Assistant sidebar's forensic view. That write path is what
this commit bounds.

ExecutePatrolStream now calls SessionStore.TrimMessages(200)
after each run, keeping roughly the last two runs' worth of
messages — enough for the sidebar to show recent activity, far
short of unbounded growth. The next Patrol run on a bloated
session will drop the historical 3,000+ messages down to 200
on its first write, so existing storage debt clears on its
own without a separate migration.

User-driven chat sessions are unaffected: TrimMessages with
keepMostRecent <= 0 is a no-op, and callers that want full
history retention simply don't call it. Only Patrol's
forensic session is capped.

The canonical Patrol forensic log is the PatrolRunRecord
history surfaced at /api/ai/patrol/runs — that's the durable
record with structured fields. The chat-session-shaped file
is a sidebar convenience, not the source of truth.

Three tests guard the boundary:
  - TrimMessages keeps the most recent N (50 messages
    trimmed to 10 → messages 40-49 remain)
  - TrimMessages is a no-op below threshold (5 messages,
    cap 200 → 5 messages remain)
  - TrimMessages with non-positive keep is a no-op (3
    messages, cap 0 or -5 → 3 messages remain)

ai-runtime contract updated.
2026-05-10 23:19:08 +01:00
2026-03-18 16:06:30 +00:00
2026-05-08 10:06:06 +01:00
2026-05-05 15:12:31 +01:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2025-10-11 23:29:47 +00:00
2026-05-01 21:36:28 +01:00
2026-03-18 16:06:30 +00:00
2026-05-05 15:32:32 +01:00

Pulse

Pulse Logo

Real-time monitoring for Proxmox, Docker, Kubernetes, and TrueNAS infrastructure.

GitHub Stars GitHub release Docker Pulls License

Live Demo • Pulse Pro • Documentation • Report Bug


Issue-first contribution policy: please open an issue or discussion before investing time in a code change. External pull requests are not part of the normal contribution flow for this repository. See CONTRIBUTING.md.

🚀 Overview

Pulse is a modern, unified monitoring workspace for your infrastructure across Proxmox, Docker, Kubernetes, and TrueNAS. It consolidates metrics, alerts, and AI-powered insights from all your systems into a single, beautiful interface.

Designed for homelabs, sysadmins, and MSPs who need a "single pane of glass" without the complexity of enterprise monitoring stacks.

Pulse Infrastructure

🧭 Unified Navigation

Pulse now groups everything by task instead of data source:

  • Infrastructure for hosts and nodes
  • Workloads for VMs, containers, and Kubernetes pods
  • Storage and Backups as top-level views
  • PMG now routes into Infrastructure (source filter), and Kubernetes routes into Workloads (K8s filter)
  • Legacy URLs are no longer routed as compatibility aliases; use canonical v6 routes.

Power-user shortcuts:

  • g i → Infrastructure, g w → Workloads, ? → shortcuts help
  • / or Cmd/Ctrl+K → global search

✨ Features

Core Monitoring

  • Unified Monitoring: View health and metrics for PVE, PBS, PMG, Docker, Kubernetes, and TrueNAS in one place
  • Smart Alerts: Get notified via Discord, Slack, Telegram, Email, and more
  • Auto-Discovery: Automatically finds Proxmox nodes on your network
  • Metrics History: Persistent storage with configurable retention
  • Recovery Central: Unified backup/snapshot/replication timeline across PBS and TrueNAS

AI-Powered

  • Chat Assistant (BYOK): Ask questions about your infrastructure in natural language
  • Patrol: Background health checks that generate findings on a schedule. Community self-hosted installs can run Patrol with your own AI provider or a local model.
  • Alert Analysis (Pro / hosted Cloud): Optional AI analysis when alerts fire
  • Cost Tracking: Track usage and costs per provider/model

Multi-Platform

  • Proxmox VE/PBS/PMG: Full monitoring and management
  • TrueNAS: Pools, datasets, disks, ZFS snapshots, replication tasks, and alerts
  • Kubernetes: Complete K8s cluster monitoring via agents
  • Docker/Podman: Container and Swarm service monitoring
  • OCI Containers: Proxmox 9.1+ native container support

Security & Operations

  • Secure by Design: Credentials encrypted at rest, strict API scoping, agent commands disabled by default
  • One-Click Updates: Easy upgrades for supported deployments
  • OIDC/SSO/SAML: Single sign-on with multi-provider support
  • Mobile Remote Access: Relay protocol with end-to-end encryption for supported Pulse Mobile clients (Relay and above)
  • Privacy Focused: Anonymous outbound telemetry is enabled by default and fully documented — no hostnames, credentials, or personal data is ever sent. Disable any time in Settings or via PULSE_TELEMETRY=false.

⚡ Quick Start

Paid Pulse Pro / Relay / legacy customers: GitHub release assets and the public rcourtman/pulse Docker image are community builds. They can accept an activation key, but they do not include the private Pulse Pro runtime hooks. Use https://pulserelay.pro/download.html with your activation key to get the private Pulse Pro Docker image or Linux archive.

Replace vX.Y.Z with the exact release tag you want, verify the signed installer, then run it on your Proxmox host:

export PULSE_VERSION=vX.Y.Z
curl -fsSLO "https://github.com/rcourtman/Pulse/releases/download/${PULSE_VERSION}/install.sh"
curl -fsSLO "https://github.com/rcourtman/Pulse/releases/download/${PULSE_VERSION}/install.sh.sshsig"
ssh-keygen -Y verify \
  -f <(printf '%s\n' 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDs21c5oPk2khrdHlsw1aZ9EJKoTsyalGzhb0hdwJrkV pulse-installer') \
  -I pulse-installer \
  -n pulse-install \
  -s install.sh.sshsig < install.sh
bash install.sh --version "${PULSE_VERSION}"
rm -f install.sh install.sh.sshsig

Note: this installs the Pulse server. Agent installs use the command generated in Settings → Unified Agents → Installation commands (served from /install.sh on your Pulse server).

Option 2: Docker

docker run -d \
  --name pulse \
  -p 7655:7655 \
  -v pulse_data:/data \
  --restart unless-stopped \
  rcourtman/pulse:vX.Y.Z

Open Pulse at http://<your-ip>:7655.

Local Development

Use the managed dev runtime from the repo root:

npm run dev

Open http://127.0.0.1:5173 in the browser. 5173 is the frontend dev shell, and it proxies /api and /ws to the backend on 7655. 7655 is the backend dependency for API and websocket traffic, not the primary browser URL for local frontend development.

The managed dev runtime resets its local login to admin / adminadminadmin on startup unless you override it with HOT_DEV_AUTH_USER and HOT_DEV_AUTH_PASS.

Canonical local dev commands:

  • npm run dev — start the managed runtime and reclaim the canonical dev ports if an older unmanaged session is still using them
  • npm run dev:status — show frontend shell health, proxied API health, direct backend health, and listener ownership
  • npm run dev:verify — run the managed browser proof pack against the live dev runtime, including runtime recovery, the Patrol blocked-runtime page contract, and the desktop Recovery layout guard while the launcher suppresses unrelated backend rebuild churn for the duration of the proof pack
  • npm run dev:logs — tail the managed runtime log
  • npm run dev:backend-restart — bounce only the managed backend through the launcher contract
  • npm run dev:stop — stop the managed runtime
  • npm run dev:foreground — run the foreground hot-reload launcher intentionally if you need an attached shell

If npm run dev:verify passes, the managed dev shell, proxy path, backend health endpoint, browser recovery path, Patrol blocked-runtime page behavior, and Recovery desktop history-table layout are all aligned.

📚 Documentation

🌐 Community Integrations

Community-maintained integrations and addons:

💳 Plans (Community / Relay / Pro / Cloud)

Pulse is full-featured for core monitoring in every self-hosted tier. Self-hosted pricing no longer sells more room for monitoring volume; paid value comes from convenience, history, AI operations, and advanced administration. Cloud and MSP pricing are unchanged.

Self-hosted tiers:

Plan Price Core monitoring Metric history Main value
Community Free Included 7 days Full self-hosted monitoring
Relay $39/yr or $4.99/mo Included 14 days Remote web access, mobile app pairing, and push notifications
Pro $79/yr or $8.99/mo Included 90 days Root-cause analysis, safe remediation workflows, and operations tooling

Pulse still counts top-level monitored systems once no matter how they are collected. VMs, containers, pods, disks, backups, and other child resources under that system are included rather than counted separately, but that count is no longer the self-hosted paid gate.

Community keeps Patrol available with your own provider or local model. Relay remains the convenience tier, and Pro is the paid operations tier.

Runtime-aligned capability summary:

Capability Community Relay Pro Cloud
Pulse Patrol (Background Health Checks) ✅ ✅ ✅ ✅
Remote Access / Mobile / Push — ✅ ✅ ✅
Alert-Triggered Root-Cause Analysis — — ✅ ✅
Safe Remediation Workflows — — ✅ ✅
Centralized Agent Profiles — — ✅ ✅
Update Alerts (Container/Package Updates) ✅ ✅ ✅ ✅
SSO (OIDC/SAML/Multi-Provider) ✅ ✅ ✅ ✅
Role-Based Access Control (RBAC) — — ✅ ✅
Enterprise Audit Logging — — ✅ ✅
Advanced Infrastructure Reporting (PDF/CSV) — — ✅ ✅
Extended Metric History 7 days 14 days 90 days 90 days

Pulse Patrol runs on your schedule (every 10 minutes to every 7 days, default 6 hours) and finds:

  • ZFS pools approaching capacity
  • Backup jobs that silently failed
  • VMs stuck in restart loops
  • Clock drift across cluster nodes
  • Container health check failures

On self-hosted installs, Pulse Patrol uses the provider you configure from your Pulse server. That can be a commercial API key or a local model endpoint. Chat Assistant follows the same self-managed provider model.

Technical highlights:

  • Cross-system context (nodes, VMs, backups, containers, and metrics history)
  • LLM analysis with your provider plus alert-triggered root-cause investigations (Pro / hosted Cloud)
  • Optional safe remediation execution with command safety policies and audit trail
  • Centralized agent profiles for consistent fleet settings

Try the live demo → or learn more at pulserelay.pro

Pulse plan technical details: docs/PULSE_PRO.md

❤️ Support Pulse Development

Pulse is maintained by one person. Sponsorships help cover the costs of the demo server, development tools, and domains. If Pulse saves you time, please consider supporting the project!

GitHub Sponsors ko-fi

📄 License

MIT © Richard Courtman. Use of Pulse Pro is subject to the Terms of Service.

S
Description
Monitoring for Proxmox, Docker, Kubernetes, TrueNAS, and vSphere that watches your infrastructure for you: smart alerts, AI patrols that catch silent failures, and verified fixes
Readme MIT 465 MiB
Languages
Go 61.5%
TypeScript 31.6%
Python 3.9%
Shell 1.8%
JavaScript 0.9%
Other 0.2%