Brian,
Even vmware_vm_guest_disk_free values are the same and unfortunately, the
file structure is not consistence. I can't rely on them.
Here is the capacity - free calculation and you can see from them there is
a pointing issue.
The last point I came,
( count_values ("value", vmware_vm_guest_disk_capacity{ vm_name="$vm_name"
} ) ) and I can see the unique values but I couldn't sum them.
I've attached the screenshot.
What can I do after this point ?
vmware_vm_guest_disk_capacity{vm_name="host.com"} -
vmware_vm_guest_disk_free{vm_name="host.com"}
{job="vmware",partition="/",vm_name="host.com"} 29796904960
{job="vmware",partition="/backup",vm_name="host.com"} 35256586240
{job="vmware",partition="/boot",vm_name="host.com"} 202129408
{job="vmware",partition="/home/virtfs/fld/etc/alternatives",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/etc/apache2",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/etc/mail",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/etc/pki/ca-trust",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/etc/pki/tls",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/etc/scl",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/home/fld",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/opt",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/tmp",vm_name="host.com"}
34209792
{job="vmware",partition="/home/virtfs/fld/usr",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/usr/local/cpanel/3rdparty/mailman",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/usr/local/cpanel/3rdparty/mailman/archives",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/usr/local/cpanel/3rdparty/mailman/data",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/usr/local/cpanel/3rdparty/mailman/lists",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/usr/local/cpanel/3rdparty/mailman/locks",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/usr/local/cpanel/3rdparty/mailman/logs",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/usr/local/cpanel/3rdparty/mailman/qfiles",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/usr/local/cpanel/3rdparty/mailman/spam",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/usr/sbin",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/var",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/var/cpanel/email_send_limits",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/var/cpanel/php/sessions",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/var/log",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/var/spool",vm_name="host.com"}
29796904960
{job="vmware",partition="/home/virtfs/fld/var/tmp",vm_name="host.com"}
34209792
{job="vmware",partition="/tmp",vm_name="host.com"} 34209792
{job="vmware",partition="/var/tmp",vm_name="host.com"} 34209792
On Tuesday, 10 March 2020 13:43:00 UTC-7, Brian Candler wrote:
>
> You're assuming that two disks that have the same capacity, are the same
> disk. You can't be sure that's true. The way you tell two metrics apart
> is that they have different labels, not different values.
>
> What I *think* is going on is you have a load of alias mounts, where an
> existing filesystem is aliased under /home/virtfs/fld. So I'd suggest you
> simply filter those out, to leave the real filesystems.
>
> Unfortunately you don't have a filesystem mount type label (perhaps you
> could fix the exporter to include this?), but until then you could do:
>
> vmware_vm_guest_disk_capacity{partition!~"/home/virtfs/.*|/var/tmp"}
>
> (on the assumption /var/tmp is an alias of /tmp, although again I can't be
> sure of that; it could be two separate disks of identical size). Then you
> can extend it to:
>
> vmware_vm_guest_disk_capacity{partition!~"/home/virtfs/.*|/var/tmp"} -
> vmware_vm_guest_disk_free
>
> You don't need to repeat the label filter: the subtraction only operates
> between two series with exactly the same set of labels.
>
--
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/44b132fb-501f-497b-9e4c-092aa522bd12%40googlegroups.com.