You can write your own code which queries the prometheus API and does 
whatever you like with the data.

PromQL can't do what you're asking, because in general it is not sensible 
for processing timeseries.  The *definition* of a timeseries is a 
collection of values with a unique set of labels.  All those things are 
unique timeseries; it doesn't matter whether the values happen to be the 
same or not.

If I were in your situation, what I would do is to see if I could fix the 
vmware exporter to include a filesystem type, like node_exporter has:

node_filesystem_size_bytes{device="lxcfs", fstype="fuse.lxcfs", 
instance="nuc1", job="node", mountpoint="/var/lib/lxcfs", 
netbox_type="device"} => 0 @[1583914742.097]
node_filesystem_size_bytes{device="tmpfs", fstype="tmpfs", instance="nuc1", 
job="node", mountpoint="/run", netbox_type="device"} => 824844288 
@[1583914742.097]
node_filesystem_size_bytes{device="tmpfs", fstype="tmpfs", instance="nuc1", 
job="node", mountpoint="/run/lock", netbox_type="device"} => 5242880 
@[1583914742.097]
...

This can easily be filtered on device and/or fstype.

-- 
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/d341b8a6-bd07-42d2-8d2e-b3660de70362%40googlegroups.com.

Reply via email to