feat: collect and report 1-min load average

This commit is contained in:
2026-06-18 14:41:04 +01:00
parent 6756d19d93
commit b8ee27eec3
10 changed files with 139 additions and 4 deletions

View File

@@ -22,11 +22,12 @@ func (s *LoggingSender) Send(ctx context.Context, snap aggregate.Snapshot) error
return ctx.Err()
default:
log.Printf(
"SEND cpu=%.2f%% mem=%.2f%% disk=%.2f%% uptime=%ds",
"SEND cpu=%.2f%% mem=%.2f%% disk=%.2f%% uptime=%ds load=%.2f",
snap.CPUAvg,
snap.MemAvg,
snap.DiskAvg,
snap.Uptime,
snap.Load,
)
return nil
}