feat: collect and report 1-min load average
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user