Skip to content

Commit 73e5f45

Browse files
committed
Display current usage value
1 parent 32e8b1b commit 73e5f45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

resources/resources.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,13 +358,15 @@ func (r *resources) observe(ctx context.Context, interval time.Duration) {
358358
if r.isCPULimiting != doCPULimit {
359359
r.logger.Warn().WithFields(log.Fields{
360360
"enabled": doCPULimit,
361+
"current": cpuload,
361362
}).Log("Limiting CPU")
362363
}
363364
r.isCPULimiting = doCPULimit
364365

365366
if r.isMemoryLimiting != doMemoryLimit {
366367
r.logger.Warn().WithFields(log.Fields{
367368
"enabled": doMemoryLimit,
369+
"current": vmstat.Used,
368370
}).Log("Limiting memory")
369371
}
370372
r.isMemoryLimiting = doMemoryLimit

0 commit comments

Comments
 (0)