-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to retrieve On-prem resource utilization #2040
Comments
is there a particular language you are using as most will have ways of getting at this info - in c something like
would work |
Thanks for your reply. This code looks like it is executed in Nanos to get the system free memory. If I want to get Nanos related information in the host machine, similar to the metrics provided to the cloud platform, how can I do it? |
yes, you need to export your metrics through an agent; most people have a preferred apm vendor or the cloud metrics as you suggest, there is also radar which does memory && disk by default: https://docs.ops.city/ops/klibs#radar we could look at adding some sort of optional flag or something for ops for local instances |
fyi, i added a WIP for mem metrics via balloon in ops here: https://github.com/nanovms/ops/tree/balloon |
Looks good, is there any way to get CPU utilization? |
if asking about outside the guest you could use your normal tools but inside - i'm not quite sure what we would do there since it's single process and you aren't showing the share of utilization amongst everything else (such as ubuntu where you might have a few hundred processes running) - i know several apm vendors have thread utilization that you might look into |
@leeyiding if you are looking for a host-side tool to measure CPU utilization that is more accurate than |
Thanks for the suggestion, I'll try it |
Hello, I am currently trying to retrieve the resource utilization of on-premise QEMU instances, specifically focusing on CPU and memory usage.
ps
are often inaccurate.{"execute": "query-balloon"}
, but I encountered an error:{'error': {'class': 'DeviceNotActive', 'desc': 'No balloon device has been activated'}}
.Any assistance or guidance on how to accurately measure these resource utilizations would be greatly appreciated.
The text was updated successfully, but these errors were encountered: