1 of 1 people found this helpful
The xPath expression is:
/virtualMachine/totalThroughputUtilization/week/text() * 1024 div /virtualMachine/totalStorageSizeUsed/text()
Keep in mind that due to different units of the attributes (totalThroughputUtilization [kB/s] vs. totalStorageSizeUsed [B]) it's necessary to multiple ThroughputUtilization by 1024.
You can see various xPath expressions in "VM CPU Underallocated" Top-N widget ("VM Sprawl" dashboard) or "Predicted VM Disk Depletion" Top-N widget ("Storage" dashboard).
Should you have any questions, feel free to ask.
Great instructions and great reference to examples!
One additional question before I mark this answered. Is there a way to use the xPath expression on the sort field of Top-N widget?
No, in Top-N widget you can sort items based on attributes only.
You can find more info about Trends in VMAN Admin manual (Trends).
And Trend widget may look like this:
I'm not sure if it's feasible for you. So if you prefer Top-N widget then it's not possible to sort items via xPath expressions.