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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/ffca2edc-c67d-47af-aaeb-87b9ad75cad4%40googlegroups.com.

Reply via email to