Files
pulse/docs
rcourtman 66c8c63e79 Hand a node only the usage metrics its agent evaluates (#2581)
This stacks on #2577. Once #2577 merges, the diff here reduces to the
last commit.

## Problem

`CheckHost` registered a host agent's node link before its disabled
returns. With agent alerts switched off, or a host override disabling
the agent, the node still released its CPU, memory and disk alerts to an
agent that evaluated nothing, so nothing alerted on that machine's
usage. The same happened per metric: an agent CPU threshold set to off
with the node CPU threshold on left the machine with no CPU alert. The
gap predates #2569; the old hostname dedup registered in the same place.

## Fix

- The link now records which usage metrics the agent actually evaluated
on its last report: a live CPU threshold, a live memory threshold with a
known reading, and at least one filesystem with a live disk threshold.
- `CheckHost` registers the link after evaluation and removes it on the
disabled returns.
- `CheckNode` releases only the metrics the agent owns and evaluates the
rest itself. Deduplication can only remove a duplicate, never the last
alert for a machine.
- The link also carries the agent's display name and a stable lookup
(`linkedHostAgentForNode`, lowest agent ID wins). The handover
notification work builds on these.

## Tests

`TestCheckNodeKeepsUsageMetricsTheAgentDoesNotEvaluate` covers two
cases: agent alerts disabled (the node alerts on CPU and memory), and
the agent CPU threshold off (the node keeps CPU while the agent keeps
memory, so the machine still has exactly one memory alert). Both cases
fail with the old registration order. The dedup tests use the new link
struct. `go test ./internal/alerts/...` passes, and so do the monitoring
alert, temperature, host-agent and node tests.

## Review follow-up (second commit)

A review of the first commit found three more ways the node and its
linked agent could disagree about who alerts:

- **Memory ownership flipped with each report.** Ownership needed a
known memory reading on every report. When the reading went missing
while the agent's alert was open, the agent kept its alert but stopped
owning memory, so the node raised a second alert. That alert resolved as
soon as the reading came back. Ownership now follows the agent's
configured thresholds, and a missing reading is treated as missing.
- **Only one linked agent counted.** With several agents linked to one
node, only the lowest agent ID's coverage was used. A metric is now
owned when any linked agent evaluates it.
- **Disk ownership covered the wrong filesystem.** A linked node's disk
metric is the agent's summary filesystem: root when reported
(`models.SummaryDisk`). Any evaluated mount was enough to take
ownership, so with root disabled by a per-disk override and `/data`
still alerting, a full root filesystem raised nothing. The agent now
owns the node's disk metric only while it evaluates that same
filesystem.

`TestCheckNodeUsageOwnershipFollowsWhatAgentsEvaluate` covers all three
cases; each fails without its fix.
2026-10-06 17:50:49 +01:00
..
2026-10-05 21:53:41 +01:00
…
2026-10-05 21:53:41 +01:00
2026-10-05 21:53:41 +01:00

Pulse documentation

Start here for installation, platform setup, security, operations, and Pulse Intelligence. Commands, configuration keys, image names, API fields, and product identifiers remain untranslated in localized guides.

Start here

  • Install Pulse — signed Proxmox/Linux installation, Docker, Docker Compose, Kubernetes, and first-run setup.
  • Production deployment and security — least-privilege Proxmox setup, root-agent boundaries, discovery, supply-chain verification, plan limits, scale evidence, and a rollout checklist.
  • Upgrade from Pulse v5 — migration prerequisites, rollback, agent continuity, and post-upgrade checks.
  • Releases and update channels: choosing Stable or Preview, beta and RC expectations, and how releases are tested and promoted.
  • Configure Pulse — authentication, notifications, discovery, retention, and system settings.
  • Deployment models — data locations, lifecycle, and differences between supported deployment paths.
  • Troubleshooting and FAQ — common failures, diagnostics, and operator questions.

Localized getting started guides: Deutsch · Español

Platforms and agents

VMware vSphere support is early access. Current builds expose dedicated vSphere inventory and recovery context, but operators should validate the integration against their own vCenter before production use.

Monitoring and operations

Pulse Intelligence

Patrol watch-only analysis is available on Community with a local model or the operator's own provider. Investigation and governed fixes require the relevant Pulse Pro capabilities.

Security, privacy, and access

Plans and managed access

Pulse Cloud is not generally available. Ordinary self-hosted Pulse remains the primary installation path; MSP and Enterprise access are explicit commercial paths rather than defaults in self-hosted setup.

Development and reference

Detailed design notes and dated migration specifications may remain in this directory for maintainers, but they are not operator setup guides unless they are linked from the sections above.

Previous versions and migrations

Found a bug? Use the issue forms. For setup questions, use GitHub Discussions.