Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Merge remote-tracking branch 'origin/main' into fix/metric-alert-live-status

rcourtman50b3fd822697
diff --cc internal/alerts/canonical_metric.go
index 4d56b7ca48,7e3a76580b..de6c8f3d36
--- a/internal/alerts/canonical_metric.go
+++ b/internal/alerts/canonical_metric.go
@@@ -342,12 -330,18 +342,21 @@@ func (m *Manager) evaluateCanonicalMetr
return
}
+ // A hold keeps the last breach's value and message, but what the
+ // alert is about is current: one restored from an older checkpoint,
+ // or raised before its producer named a child type or platform,
+ // must not link to the wrong page until it re-fires or clears.
+ if refreshMetricAlertClassification(existingAlert, alertMetadata) {
+ m.setActiveRecoveryAlert(existingAlert, storageKey)
+ m.saveActiveAlertsAsync("canonical metric classification")
+ }
+
if !triggered && primary == "" {
- // Hysteresis latch: below trigger but above recovery — hold
- // without refreshing, as the pre-cutover engine did.
+ // Hysteresis hold or recovery run: Value, Message and LastSeen
+ // keep the last breach, and nothing here may notify. Only the
+ // volatile live status moves, so surfaces can say what the
+ // reading is now and why the alert has not cleared.
+ existingAlert.MetricStatus = metricStatus
return
}