rcourtman 044dc091ec Own PVE disk alert history rows by recorded hardware (#2646)
Follows #2627, which left PVE disk alert references out of resource
history: binding the path reference failed review because a binding
belongs to the reference string, so any disk that takes over the path
inherits every row and every read of it. A physical disk's history
(facets, timeline and intelligence APIs, Assistant resource context,
Patrol's scoped feed) therefore never showed its own SMART health and
wearout alerts.

This owns each lifecycle row instead of binding the reference.

**Write**
- `proxmoxDiskAlertMetadata` now records `disk_wwn` next to
`disk_serial`.
- `MonitorAdapter.RecordChange` writes a PVE disk alert row under the
one physical disk the registry knows by that serial or WWN
(`proxmoxDiskAlertOwner`), wherever it sits now. A WWN only breaks a tie
between two matches; it never rules a disk out, because the registry
keeps a merged agent's smartctl-framed WWN (`5-c500-…`), which doesn't
compare equal to PVE's (`0x5000c500…`). The registry only translates
identity into a canonical ID. The path never breaks a tie, so a
generation that still places another disk at the path cannot gain a row
that disk does not match by identity, and no check precedes a later
write. A disk not yet in inventory, or removed, gets the ID the registry
mints for its identity unless another resource holds it. A row with no
usable identity names only the one identity-less disk at its path.
Anything else stays under the reference.
- An owned row records the alert's reference as `alert_resource_id`. No
alias is written, the reference is never queued for the legacy backfill,
and `resolveHistoryReference` refuses it.
- Rows journaled before this change stay under the reference,
unrewritten (journal rows are never rewritten; retention is 30 days).

**Read**
- A store read by the reference (rows and every count, SQLite and
MemoryStore) also returns the rows owned away from it. They are matched
through the indexed alert identifier plus the recorded reference, so the
Alerts history Resource action lists the same occurrences as before.
- `QueryIncidents` matches owned rows to occurrences under their alert
reference, while their evidence keeps the owning disk. Reads by alert
identifier and by the reference return the same occurrences as before,
including one occurrence whose firing and resolution two disks own. A
read by a disk admits the saved shells of its own occurrences. An owned
row whose firing the read lacks takes the occurrence or saved shell at
its recorded start (shells within the usual tolerance), or opens it
under the alert-centric read's ID, before events are assigned. That
boundary is not canonical, so capped reads keep their guard. Notes
recorded from a disk read reach the occurrence the alert-centric read
shows.

**Known residuals (in the unified-resources contract)**
- History follows inventory where inventory merges: same-serial disks, a
serial carried at a path when a poll reports none, and disks correlated
with an agent observation by path.
- When PVE and the agent share no identifier for such a disk (a SAS
address reported as the serial), or the alert fired before the PVE
observation reached the registry, the row carries the minted ID. The
disk's history omits it, and reads by the reference still return it.
- A disk the registry keys by its agent's WWN alone also carries PVE's
serial, so a different disk reporting that same serial, before its first
poll reaches the registry, has its row written under the first disk.
- Two occurrences of one alert starting within the shell tolerance: the
alert-centric read assigns a saved shell by firing order, which a disk
read missing a firing cannot reproduce.

**Tests**
- `TestProxmoxDiskAlertRowsFollowRecordedHardwareIdentity` (SQLite and
memory): reboot reorder before the registry catches up, replacement
before and after its first poll, WWN-only, path-only, placeholder
serial, counts.
- `TestProxmoxDiskAlertOwnerDecisions`: shared serials, WWN tie-break,
agent-framed WWN, RAID volume (full NAA serial, truncated WWN), minted
ID already held, identity-less paths.
- `TestHistoryIdentityNeverBindsProxmoxDiskAlertReferences`, which
replaces `TestHistoryIdentityLeavesProxmoxDiskAlertReferencesUnbound`.
- `TestProxmoxDiskAlertReferenceReadUsesIndexes`: the read by reference
uses the canonical and alert-identifier indexes, not a scan.
- `TestIncidentQueryKeepsOccurrencesOfHardwareOwnedDiskAlerts` compares
the journaled and owned layouts for alert-identifier, `StartedAt` and
reference reads, plus disk reads, notes, evidence and a split occurrence
with no shell, an exact shell and an offset shell, on both stores.
`TestIncidentQueryTruncatedReadKeepsOwnedOccurrencesGuarded` covers
capped reads.
- `TestCheckDiskHealthAlertsCarryHistoryOwnershipIdentity`: the
producer's alert identifiers match
`ProxmoxPhysicalDiskAlertIdentifiers`.
- `TestProxmoxDiskAlertTimelineFollowsRecordedHardware`: real alert
manager, reboot reorder, incidents by reference and by disk.
- Each new test fails against the code it guards (checked by reverting
it).

**Live check** (private mock-mode build, fresh data dir): 6 fired rows
and 1 acknowledgement, all owned by the disk their serial names. No
aliases. Each disk's timeline API returns its rows.
`/api/ai/incidents?resource_id=<reference>` and `?resource_id=<disk>`
return the same incident (same saved ID; fired and acknowledged events
whose evidence names the disk).
2026-10-07 11:53:57 +01:00
2026-10-05 21:53:41 +01:00
2026-03-18 16:06:30 +00:00
2026-10-05 21:53:41 +01:00
2026-03-18 16:06:30 +00:00
2025-10-11 23:29:47 +00:00
2026-03-18 16:06:30 +00:00
2026-10-05 21:53:41 +01:00

Pulse

Pulse logo

Real-time Proxmox, Docker and Kubernetes monitoring that finds what needs attention.

GitHub Stars GitHub Release Docker Pulls License

Live demo · Documentation · Releases · Discussions

Pulse is a self-hosted monitoring workspace for Proxmox, Docker, Kubernetes, TrueNAS, physical and virtual machines, and early-access VMware vSphere environments. It combines live infrastructure state, history, alerts, recovery visibility, and scheduled health checks without requiring a conventional enterprise monitoring stack.

Pulse Proxmox workspace

Why Pulse

  • It watches between visits. Alerts and Pulse Patrol find failed backups, capacity pressure, restart loops, unhealthy containers, clock drift, and other problems that dashboards cannot surface when nobody is looking.
  • It keeps each platform familiar. Proxmox, Docker, Kubernetes, TrueNAS, vSphere, and machines have dedicated views, backed by one shared resource model for search, alerts, history, and investigation.
  • It stays operator-controlled. Credentials are encrypted at rest, API tokens are scoped, agent commands are disabled by default, and governed fixes require the configured policy and approval path.

Platform coverage

Platform Coverage
Proxmox VE, PBS, and PMG Nodes, guests, storage, backups, replication, Ceph, mail gateways, and alerts
Docker and Podman Hosts, containers, Compose projects, Swarm services, health, images, and updates
Kubernetes Clusters, nodes, workloads, pods, services, storage, and events through the unified agent
TrueNAS SCALE and CORE Pools, datasets, disks, snapshots, replication tasks, apps, VMs, and alerts
Linux, Windows, and macOS machines Host health, filesystems, networking, temperatures, RAID, and availability through the unified agent
VMware vSphere Early-access inventory, hosts, clusters, VMs, datastores, networks, snapshots, and recovery context; validate against your own vCenter before production use

Platform pages keep storage and recovery information beside the infrastructure it belongs to. Alerts, Actions, and Patrol remain cross-platform views.

Patrol: monitoring that does rounds

Pulse Patrol runs scheduled checks across the current state and recent history of your infrastructure. Community installations can use a local model or their own AI provider for watch-only analysis. Pulse Pro adds investigation and policy-bound fixes with approval, verification, and an audit trail.

Pulse Patrol attention queue

Pulse also includes an interactive Assistant and an MCP adapter for external clients such as Claude Code and OpenCode. Both sit on top of the same scoped inventory, metrics, alert, storage, and governed-action contracts.

Quick start

Choose an exact version from the latest release and keep that version pinned during installation.

Docker

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

Open http://<your-ip>:7655 and follow the bootstrap-token setup. Docker host monitoring is provided by the unified agent; the Pulse server container does not need the Docker socket.

Proxmox LXC, Linux, and Kubernetes

The installer is signed. Verify install.sh against the pinned pulse-installer key before running it:

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' 'pulse-installer namespaces="pulse-install" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMZd/DaH+BldzOkq1A8KVTcFk73nAyrE8aJOyf7i00jm pulse-installer') \
  -I pulse-installer \
  -n pulse-install \
  -s install.sh.sshsig < install.sh &&
bash install.sh --version "${PULSE_VERSION}"

Paste the whole block: installation stops if either download or signature verification fails. Do not run the final command separately to bypass a failure.

The GitHub installer installs the Pulse server. Install and upgrade agents (including v5-to-v6 agent upgrades) with the per-host command generated under Settings → Infrastructure → Install on a host.

Do you need an agent?

Often not. Proxmox VE, PBS, and PMG are monitored through the Proxmox API with a read-only token, so nothing runs on the host and the generated setup script creates a privilege-separated monitoring user. Install the unified agent only where you want data the platform API cannot provide, such as host SMART health, temperatures, Docker hosts, or standalone machines.

The agent is operator-controlled by design. Command execution is off by default, the local listener binds to localhost, and generated systemd units ship hardened. On Linux, the installer's --least-privilege profile runs the service as a dedicated non-root user, with optional scoped sudo grants for the few collectors that need elevation. The agent security model documents exactly what the agent can and cannot do at each privilege level.

Important

GitHub release assets and rcourtman/pulse images are Community builds. Relay, Pro, and eligible legacy customers should use the private image or Linux archive provided by the Pulse download portal. Replacing a private Pro runtime with a public Community build removes its private runtime hooks.

Editions

  • Community — self-hosted monitoring, seven days of metric history, core SSO, update alerts, and Patrol with your own provider or local model.
  • Pro — Community plus Patrol investigation, governed fixes, ninety days of history, centralized agent profiles, RBAC, audit logging, and reporting.
  • MSP — for managed service providers: one Pulse Account running many client workspaces, each with an isolated Pulse runtime — separate dashboards, alerts, users, audit history, and reports. Free sixty-day two-client evaluation at Pulse for MSPs.

Relay is no longer sold. Existing Relay subscribers receive Pro features at their current price for as long as their subscription continues. Existing paired phones keep working until 31 March 2027. Relay connects the app, not the web UI. Use your own VPN or tunnel for remote web access. For phone alerts, add an ntfy, Gotify or Pushover destination and open Pulse in your phone's browser.

Core self-hosted monitoring is not gated by monitored-system or child-resource volume. See the runtime-aligned capability reference and current plans for details.

Documentation

Localized getting started guides: Deutsch · Español

Development

Pulse uses Go 1.26 and a SolidJS/TypeScript frontend. The managed development runtime starts the frontend at http://127.0.0.1:5173 and proxies API and WebSocket traffic to the backend on port 7655.

npm ci
npm --prefix frontend-modern ci
npm run dev

Useful checks:

go test ./...
npm --prefix frontend-modern test
npm --prefix frontend-modern run type-check
python3 scripts/check_public_docs.py

See CONTRIBUTING.md before investing in a code change. Pulse uses an issue-first contribution process and does not normally accept unsolicited pull requests.

Community and support

License

Everything in this repository is licensed under the MIT License. There is no dual licensing and no commercial or source-available code here.

Pulse Pro is a separate commercial product, built from private sources and distributed through pulserelay.pro. Its use is governed by the Terms of Service, which apply to that product only, not to anything in this repository.

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 424 MiB
Languages
Go 60.8%
TypeScript 28.8%
Python 5.5%
JavaScript 2.8%
Shell 1.8%
Other 0.2%