Files
Pulse/internal/ai
rcourtman 92aae26d34 Alert on a host sensor's temperature from its own threshold
The battery sensor in #3565 (applesmc TB0T) needs an alert without a
custom-metrics script. The agent now reports every lm-sensors input
with a stable key, so a threshold can name one sensor.

A native temperature sensor raises an alert only when its own override
sets one: Overrides["agent:<host>/sensor:<hex>"].Temperature, where
<hex> is the lower-case hex of the sensor ID, so IDs that differ only
by case stay apart after host child IDs are lower-cased. There is no
default and nothing is inherited from the host's or a linked node's CPU
temperature. Evaluation uses the canonical metric path (metric
temperature, resource type agent-sensor, now a spec bridge type), so
delays, escalation, quiet hours and notifications behave as for other
temperatures.

The report carries no completeness state yet, so an invalid reading, a
missing sensor, an empty inventory or telemetry expiry hold a firing
alert instead of resolving it; the existing 24-hour stale sweep still
applies. Removing or disabling the override, host or agent alerting
off, host removal and a confirmed offline host resolve it. Config saves
re-judge it by its own threshold and drop pending runs whose policy the
save switched off, using the host link identity recorded with the run.
Alert history joins the machine, and Patrol never auto-resolves these
alerts because its snapshot holds no sensor reading.

No UI writes these overrides yet; the Thresholds section follows.

Refs #3565
2026-10-31 23:16:48 +00:00
..
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-10-11 22:20:25 +01:00
2026-10-11 22:20:25 +01:00
2026-03-18 16:06:30 +00:00
2026-10-11 22:20:25 +01:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-10-11 22:20:25 +01:00
2026-10-11 22:20:25 +01:00
2026-10-11 22:20:25 +01:00
2026-03-18 16:06:30 +00:00
2026-03-18 16:06:30 +00:00
2026-10-11 22:20:25 +01:00
2026-03-18 16:06:30 +00:00