-
Notifications
You must be signed in to change notification settings - Fork 101
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
pve_disk_usage_bytes on all qemu guest is null #77
Comments
Thanks for taking the time to report this issue. Regrettably this is a limitation in Proxmox VE itself. This information would only be available if PVE would query the guest-agent running inside the VM. And that is not implemented in PVE. So regrettably we cannot do anything about that. Also this is a dupe of #45 |
@znerol Maybe this can help?
|
Thanks for the info. I tend to think that if you are in the position to run the |
The case is such that the guest agent is installed in the template of those VMs that I am deploying for our developers. And when deploying a new VM, in order to receive a warning about the lack of space, I do not need to configure the prometheus for each new VM. In my opinion, this is very convenient, for example, when looking at one board, you can immediately see the problem VMs. With LXC, it is now convenient. |
If there is a clean and straight forward way to implement this, then I do welcome a PR. Leaving this open, so people will find the issue. |
Hi, There are 2 ways to get the data: From the lv:
The first solution seems the easiest path, since it should provide the data from the agent as displayed on the PVE GUI. This only works if the qemu-guest-agent is installed in the VM. In the meantime and with some output adaptation, there must be a way to schedule the first solution with cron to feed a local prometheus 'textfile' exporter (/var/lib/prometheus/node-exporter/README.textfile). This line should be a good start if find a way to change the 'null' by 'qemu':
I did not check the exact meaning and units of maxdisk, but that's the idea. |
Looping through nodes has led to issues in the past. I guess that in order to resolve the issue properly, we'd need to fix this directly in the pve api (i.e., server side). For Perl/Raku hackers, this is the place to start looking. |
were you able to find a solution? |
on all qemu vm is null, lxc - ок
ON pve 6 or 7. Cluster or one node.
The text was updated successfully, but these errors were encountered: