Open afbjorklund opened 2 years ago
The main reason to have this running in the agent, is that the cpu counters need to keep state from last time...
Otherwise there is a pause (it is 1 second in the above program), where it accumulates enough relative values.
Will this be used for GUI dashboard or something similar?
Will this be used for GUI dashboard or something similar?
That was the idea, but I guess you could view it in the console too
Something similar to the output you can get from e.g. lima vmstat 1
(Another workaround would be to run top
, over the lima
connection.)
But the main idea was for some graphs, like in https://virt-manager.org/
I think I will move the "host" info to a separate feature, from this one.
It grew a bit, from the original idea of just parsing /etc/os-release
We used a command-line tool similar to this feature, for benchmarking minikube:
https://github.com/tstromberg/cstat
It was featured in one of the talks, on how to make Kubernetes start up faster:
Description
I am looking for a feature, where I can see the CPU usage and RAM usage of an instance. Preferrably disk usage too, if possible.
However, I could not find this to be easilly accessible in QEMU the same way that it is in VirtualBox or Docker or what have you ?
One workaround that I was considering earlier, would be to run a small program in the guest to output such information.
It would not be as accurate ("inside") as quering the hypervisor ("outside"), but it would be "good enough" for my purposes.
I made a proof-of-concept, using
gopsutil
. What you do you think about the idea ?Probably would use JSON lines, rather than text. So that it can be parsed, and graphed, on the lima client side.