From a4268c3707d662bd27e8eae5f20cb2f123d90fcd Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Fri, 17 Jul 2026 20:20:20 +0200 Subject: [PATCH] hub: offsite pool-box checker logs the pool trend on each refresh (operator visibility) --- hub/internal/monitor/offsite_box.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hub/internal/monitor/offsite_box.go b/hub/internal/monitor/offsite_box.go index e351958..769a1a5 100644 --- a/hub/internal/monitor/offsite_box.go +++ b/hub/internal/monitor/offsite_box.go @@ -153,8 +153,12 @@ func (c *OffsiteBoxChecker) Check() { c.haveSnap = true if snap.Degraded { + c.logger.Printf("[INFO] Offsite pool-box refreshed: DEGRADED (capacity unavailable) — box %d", c.boxID) return // no band transitions on degraded data } + // Periodic operator visibility of the pool trend (one line per 15-min refresh; keys, no secrets). + c.logger.Printf("[INFO] Offsite pool-box refreshed: %.1f%% full (%s of %s), Σ shared quota %d GB, oversub %.2fx", + snap.FillPercent, fmtSize(snap.UsedBytes), fmtSize(snap.CapacityBytes), snap.SumQuotaGB, snap.Ratio) // FILL band (escalation-only; recovery re-arms because bandOK has rank 0). if bandRank(snap.FillBand) > bandRank(c.fillBand) {