pyvcloud icon indicating copy to clipboard operation
pyvcloud copied to clipboard

vm.list_all_current_metrics returning multiple 'disks' for a VM with a single disk.

Open RyanW8 opened this issue 3 years ago • 0 comments

Hey,

We're trying to get a VMs disk allocation and usage using Pyvcloud however it seems that vm.list_all_current_metrics is returning multiple results for a vm that has a single disk e.g:

{'cpu.usage.average': {'unit': 'PERCENT', 'value': '2.03'}, 'cpu.usage.maximum': {'unit': 'PERCENT', 'value': '2.03'}, 'cpu.usagemhz.average': {'unit': 'MEGAHERTZ', 'value': '105.0'}, 'mem.usage.average': {'unit': 'PERCENT', 'value': '4.99'}, 'disk.used.latest.0': {'unit': 'KILOBYTE', 'value': '2944745.0'}, 'disk.used.latest.1': {'unit': 'KILOBYTE', 'value': '2944745.0'}, 'disk.used.latest.2': {'unit': 'KILOBYTE', 'value': '2944745.0'}, 'disk.provisioned.latest.0': {'unit': 'KILOBYTE', 'value': '40961073'}, 'disk.provisioned.latest.1': {'unit': 'KILOBYTE', 'value': '40961073'}, 'disk.provisioned.latest.2': {'unit': 'KILOBYTE', 'value': '40961073'}}

As you can see from the above they all have the same values but the index is different. Why is that? I'd like a point in time representation of the provisioned/usage metrics if it's possible....

RyanW8 avatar Apr 06 '21 14:04 RyanW8