Skip to content

Commit debfd31

Browse files
committed
feat(storage): add swap to resource usage
Signed-off-by: Julian van den Berkmortel <[email protected]>
1 parent 33e1d9d commit debfd31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/storage/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ func resourceUsage(last, prev MetricsPoint) (corev1.ResourceList, api.TimeInfo,
6464
return corev1.ResourceList{
6565
corev1.ResourceCPU: uint64Quantity(uint64(cpuUsage), resource.DecimalSI, -9),
6666
corev1.ResourceMemory: uint64Quantity(last.MemoryUsage, resource.BinarySI, 0),
67+
"swap": uint64Quantity(last.SwapUsage, resource.BinarySI, 0),
6768
}, api.TimeInfo{
6869
Timestamp: last.Timestamp,
6970
Window: window,

0 commit comments

Comments
 (0)