How to get VM usage values with Colima?

Viewed 205

How to check the actual stats for CPU and RAM usage with colima?

Background

Coming from docker-desktop for mac there is a UI tool which displays this information in its footer:

enter image description here

in Format: RAM X.XXGB CPU X.XX%


colima version 0.4.4

git commit: 8bb1101a861a8b6d2ef6e16aca97a835f65c4f8f

docker-desktop version: 4.10.1

2 Answers

I tried to get the documentation this is the closest thing I could see

docker stat

but this does not show total usage, instead it shows as list of containers

If you ssh into the colima instance, you can run top or htop or whatever you come up with.

(tmpconfig=$(mktemp); limactl show-ssh --format config colima > $tmpconfig; ssh -tF $tmpconfig lima-colima)

from a previous answer of mine

Related