Thank you for your response,
I'm calculating the vmware disk usage, but prometheus has no this feature
at the moment, so I'm doing vmware_vm_guest_disk_capacity -
vmware_vm_guest_disk_free
Here is the problem, regarding the virtualization files, the files are
pointing each other and it brings duplicate values. So results are
incorrect.
In the powershell with get-harddisk command I can get the real usages. If
you know how can I use get-harddisk in Prometheus that will work as well.
$vm = get-vm host.com
get-harddisk -vm $vm
So If I can get the unique results, I'll be able to calculate the correct
numbers
Here is the what I'm seeing after the query of
vmware_vm_guest_disk_capacity{vm_name="host.com"}
vmware_vm_guest_disk_capacity{job="vmware",partition="/",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/backup",vm_name="host.com"}
84417077248
vmware_vm_guest_disk_capacity{job="vmware",partition="/boot",vm_name="host.com"}
782929920
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/etc/alternatives",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/etc/apache2",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/etc/mail",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/etc/pki/ca-trust",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/etc/pki/tls",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/etc/scl",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/home/fld",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/opt",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/tmp",vm_name="host.com"}
2136997888
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/usr",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/usr/local/cpanel/3rdparty/mailman",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/usr/local/cpanel/3rdparty/mailman/archives",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/usr/local/cpanel/3rdparty/mailman/data",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/usr/local/cpanel/3rdparty/mailman/lists",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/usr/local/cpanel/3rdparty/mailman/locks",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/usr/local/cpanel/3rdparty/mailman/logs",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/usr/local/cpanel/3rdparty/mailman/qfiles",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/usr/local/cpanel/3rdparty/mailman/spam",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/usr/sbin",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/var",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/var/cpanel/email_send_limits",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/var/cpanel/php/sessions",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/var/log",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/var/spool",vm_name="host.com"}
121687089152
vmware_vm_guest_disk_capacity{job="vmware",partition="/home/virtfs/fld/var/tmp",vm_name="host.com"}
2136997888
vmware_vm_guest_disk_capacity{job="vmware",partition="/tmp",vm_name="host.com"}
2136997888
vmware_vm_guest_disk_capacity{job="vmware",partition="/var/tmp",vm_name="host.com"}
2136997888
On Tuesday, 10 March 2020 10:52:03 UTC-7, Brian Candler wrote:
>
> Can you share the raw metrics, i.e.
>
> vmware_vm_guest_disk_capacity{vm_name="xxx.com"}
>
> and then explain what you're trying to extract from them?
>
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/fed0d7cb-1dbd-4add-ac4a-aae16f9ed79c%40googlegroups.com.