gpordeus commented on PR #8511:
URL: https://github.com/apache/cloudstack/pull/8511#issuecomment-1969631792

   I ran this on my local lab and it seems to be working fine, with proper 
DEBUG and TRACE split. If there's anything to point out, I'd say that maybe the 
TRACE memory statistics log at `2024-02-28T18:17:27,575` should be on one line 
so it'd be easier to `grep`? What do you think, @winterhazel?
   
   
   <details>
   <summary>DEBUG level</summary>
   
   ```
   2024-02-28T18:44:31,537 DEBUG [kvm.resource.LibvirtConnection] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Looking for libvirtd connection 
at: qemu:///system
   2024-02-28T18:44:31,540 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Trying to get VM with name 
[v-28-VM].
   2024-02-28T18:44:31,549 DEBUG [kvm.resource.LibvirtVMDef] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Using informed label [hdc] for 
volume [null].
   2024-02-28T18:44:31,550 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Found [3] network interface(s) for 
VM [{"name":"v-28-VM","uuid":"dcfd12f7-3ad9-4baf-bf27-9d13691256d7"}].
   2024-02-28T18:44:31,557 DEBUG [kvm.resource.LibvirtVMDef] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Using informed label [hdc] for 
volume [null].
   2024-02-28T18:44:31,557 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Found [2] disk(s) for VM 
[{"name":"v-28-VM","uuid":"dcfd12f7-3ad9-4baf-bf27-9d13691256d7"}].
   2024-02-28T18:44:31,560 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Ignoring disk [<disk  
device='cdrom' type='file'><driver name='qemu' type='raw' /><source 
file=''/><target dev='hdc' bus='ide'/></disk>] in VM 
[{"name":"v-28-VM","uuid":"dcfd12f7-3ad9-4baf-bf27-9d13691256d7"}]'s stats 
since its deviceType is [cdrom].
   2024-02-28T18:44:31,560 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Retrieved statistics for VM 
[{"name":"v-28-VM","uuid":"dcfd12f7-3ad9-4baf-bf27-9d13691256d7"}]: 
[{"cpuTime":76720000000,"diskReadIOs":6543.0,"diskReadKBs":174041.0,"diskWriteIOs":2571.0,"diskWriteKBs":260983.0,"networkReadKBs":115348.23828125,"networkWriteKBs":847.6865234375}].
   2024-02-28T18:44:31,583 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Calculated metrics for VM 
[{"name":"v-28-VM","uuid":"dcfd12f7-3ad9-4baf-bf27-9d13691256d7"}]: 
[{"cpuUtilization":0.0,"diskReadIOs":0.0,"diskReadKBs":0.0,"diskWriteIOs":0.0,"diskWriteKBs":0.0,"entityType":"vm","intFreeMemoryKBs":888484.0,"memoryKBs":1048576.0,"networkReadKBs":0.0,"networkWriteKBs":0.0,"numCPUs":1,"targetMemoryKBs":1048576.0}].
   2024-02-28T18:44:31,583 DEBUG [kvm.resource.LibvirtConnection] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Looking for libvirtd connection 
at: qemu:///system
   2024-02-28T18:44:31,585 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Trying to get VM with name 
[r-30-VM].
   2024-02-28T18:44:31,593 DEBUG [kvm.resource.LibvirtVMDef] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Using informed label [hdc] for 
volume [null].
   2024-02-28T18:44:31,597 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Found [3] network interface(s) for 
VM [{"name":"r-30-VM","uuid":"62030daa-26a0-45bd-aa67-5ff289c24f78"}].
   2024-02-28T18:44:31,602 DEBUG [kvm.resource.LibvirtVMDef] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Using informed label [hdc] for 
volume [null].
   2024-02-28T18:44:31,602 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Found [2] disk(s) for VM 
[{"name":"r-30-VM","uuid":"62030daa-26a0-45bd-aa67-5ff289c24f78"}].
   2024-02-28T18:44:31,605 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Ignoring disk [<disk  
device='cdrom' type='file'><driver name='qemu' type='raw' /><source 
file=''/><target dev='hdc' bus='ide'/></disk>] in VM 
[{"name":"r-30-VM","uuid":"62030daa-26a0-45bd-aa67-5ff289c24f78"}]'s stats 
since its deviceType is [cdrom].
   2024-02-28T18:44:31,605 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Retrieved statistics for VM 
[{"name":"r-30-VM","uuid":"62030daa-26a0-45bd-aa67-5ff289c24f78"}]: 
[{"cpuTime":53550000000,"diskReadIOs":8789.0,"diskReadKBs":224117.0,"diskWriteIOs":4080.0,"diskWriteKBs":151843.0,"networkReadKBs":114122.0927734375,"networkWriteKBs":751.208984375}].
   2024-02-28T18:44:31,610 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Calculated metrics for VM 
[{"name":"r-30-VM","uuid":"62030daa-26a0-45bd-aa67-5ff289c24f78"}]: 
[{"cpuUtilization":0.0,"diskReadIOs":0.0,"diskReadKBs":0.0,"diskWriteIOs":0.0,"diskWriteKBs":0.0,"entityType":"vm","intFreeMemoryKBs":124744.0,"memoryKBs":262144.0,"networkReadKBs":0.0,"networkWriteKBs":0.0,"numCPUs":1,"targetMemoryKBs":262144.0}].
   2024-02-28T18:44:31,613 DEBUG [kvm.resource.LibvirtConnection] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Looking for libvirtd connection 
at: qemu:///system
   2024-02-28T18:44:31,613 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Trying to get VM with name 
[i-2-29-VM].
   2024-02-28T18:44:31,618 DEBUG [kvm.resource.LibvirtVMDef] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Using informed label [hdc] for 
volume [null].
   2024-02-28T18:44:31,619 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Found [1] network interface(s) for 
VM [{"name":"i-2-29-VM","uuid":"c87d40b1-644a-4063-bc83-ba357f6f71c2"}].
   2024-02-28T18:44:31,623 DEBUG [kvm.resource.LibvirtVMDef] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Using informed label [hdc] for 
volume [null].
   2024-02-28T18:44:31,628 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Found [2] disk(s) for VM 
[{"name":"i-2-29-VM","uuid":"c87d40b1-644a-4063-bc83-ba357f6f71c2"}].
   2024-02-28T18:44:31,630 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Ignoring disk [<disk  
device='cdrom' type='file'><driver name='qemu' type='raw' /><source 
file=''/><target dev='hdc' bus='ide'/></disk>] in VM 
[{"name":"i-2-29-VM","uuid":"c87d40b1-644a-4063-bc83-ba357f6f71c2"}]'s stats 
since its deviceType is [cdrom].
   2024-02-28T18:44:31,630 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Retrieved statistics for VM 
[{"name":"i-2-29-VM","uuid":"c87d40b1-644a-4063-bc83-ba357f6f71c2"}]: 
[{"cpuTime":93850000000,"diskReadIOs":14216.0,"diskReadKBs":15005.0,"diskWriteIOs":42.0,"diskWriteKBs":155.0,"networkReadKBs":6.3369140625,"networkWriteKBs":17.21875}].
   2024-02-28T18:44:31,633 WARN  [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Couldn't retrieve free memory, 
returning -1.
   2024-02-28T18:44:31,634 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-2:[]) (logid:be7bc94a) Calculated metrics for VM 
[{"name":"i-2-29-VM","uuid":"c87d40b1-644a-4063-bc83-ba357f6f71c2"}]: 
[{"cpuUtilization":0.0,"diskReadIOs":0.0,"diskReadKBs":0.0,"diskWriteIOs":0.0,"diskWriteKBs":0.0,"entityType":"vm","intFreeMemoryKBs":-1.0,"memoryKBs":524288.0,"networkReadKBs":0.0,"networkWriteKBs":0.0,"numCPUs":1,"targetMemoryKBs":524288.0}].
   ```
   </details>
   
   
   <details>
   <summary>TRACE level</summary>
   
   ```
   2024-02-28T18:17:27,565 DEBUG [kvm.resource.LibvirtConnection] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Looking for libvirtd connection 
at: qemu:///system
   2024-02-28T18:17:27,566 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Trying to get VM with name 
[v-28-VM].
   2024-02-28T18:17:27,566 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Getting CPU stats for VM 
[{"name":"v-28-VM","uuid":"dcfd12f7-3ad9-4baf-bf27-9d13691256d7"}].
   2024-02-28T18:17:27,566 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Getting network stats for VM 
[{"name":"v-28-VM","uuid":"dcfd12f7-3ad9-4baf-bf27-9d13691256d7"}].
   2024-02-28T18:17:27,568 DEBUG [kvm.resource.LibvirtVMDef] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Using informed label [hdc] for 
volume [null].
   2024-02-28T18:17:27,569 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Found [3] network interface(s) for 
VM [{"name":"v-28-VM","uuid":"dcfd12f7-3ad9-4baf-bf27-9d13691256d7"}].
   2024-02-28T18:17:27,569 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Getting disk stats for VM 
[{"name":"v-28-VM","uuid":"dcfd12f7-3ad9-4baf-bf27-9d13691256d7"}].
   2024-02-28T18:17:27,571 DEBUG [kvm.resource.LibvirtVMDef] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Using informed label [hdc] for 
volume [null].
   2024-02-28T18:17:27,571 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Found [2] disk(s) for VM 
[{"name":"v-28-VM","uuid":"dcfd12f7-3ad9-4baf-bf27-9d13691256d7"}].
   2024-02-28T18:17:27,573 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Ignoring disk [<disk  
device='cdrom' type='file'><driver name='qemu' type='raw' /><source 
file=''/><target dev='hdc' bus='ide'/></disk>] in VM 
[{"name":"v-28-VM","uuid":"dcfd12f7-3ad9-4baf-bf27-9d13691256d7"}]'s stats 
since its deviceType is [cdrom].
   2024-02-28T18:17:27,573 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Retrieved statistics for VM 
[{"name":"v-28-VM","uuid":"dcfd12f7-3ad9-4baf-bf27-9d13691256d7"}]: 
[{"cpuTime":63350000000,"diskReadIOs":6542.0,"diskReadKBs":174037.0,"diskWriteIOs":1877.0,"diskWriteKBs":256823.0,"networkReadKBs":115127.3349609375,"networkWriteKBs":727.4599609375}].
   2024-02-28T18:17:27,573 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Writing VM 
[{"name":"v-28-VM","uuid":"dcfd12f7-3ad9-4baf-bf27-9d13691256d7"}]'s CPU and 
memory information into the metrics.
   2024-02-28T18:17:27,573 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Trying to get free memory for VM 
[{"name":"v-28-VM","uuid":"dcfd12f7-3ad9-4baf-bf27-9d13691256d7"}].
   2024-02-28T18:17:27,575 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Retrieved memory statistics 
(information about tags can be found on the libvirt documentation): [{tag:6
   val:524288
   ,tag:0
   val:0
   ,tag:9
   val:1709143611
   ,tag:7
   val:105644
   }].
   2024-02-28T18:17:27,575 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Old stats exist for VM 
[{"name":"v-28-VM","uuid":"dcfd12f7-3ad9-4baf-bf27-9d13691256d7"}]; therefore, 
the utilization will be calculated.
   2024-02-28T18:17:27,575 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Calculating CPU utilization for VM 
[{"name":"v-28-VM","uuid":"dcfd12f7-3ad9-4baf-bf27-9d13691256d7"}].
   2024-02-28T18:17:27,575 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Calculating network utilization 
for VM [{"name":"v-28-VM","uuid":"dcfd12f7-3ad9-4baf-bf27-9d13691256d7"}].
   2024-02-28T18:17:27,575 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Calculating disk utilization for 
VM [{"name":"v-28-VM","uuid":"dcfd12f7-3ad9-4baf-bf27-9d13691256d7"}].
   2024-02-28T18:17:27,575 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Calculated metrics for VM 
[{"name":"v-28-VM","uuid":"dcfd12f7-3ad9-4baf-bf27-9d13691256d7"}]: 
[{"cpuUtilization":1.0634762379528082,"diskReadIOs":0.0,"diskReadKBs":0.0,"diskWriteIOs":34.0,"diskWriteKBs":252.0,"entityType":"vm","intFreeMemoryKBs":888484.0,"memoryKBs":1048576.0,"networkReadKBs":8.2197265625,"networkWriteKBs":4.412109375,"numCPUs":1,"targetMemoryKBs":1048576.0}].
   2024-02-28T18:17:27,575 DEBUG [kvm.resource.LibvirtConnection] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Looking for libvirtd connection 
at: qemu:///system
   2024-02-28T18:17:27,576 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Trying to get VM with name 
[r-30-VM].
   2024-02-28T18:17:27,576 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Getting CPU stats for VM 
[{"name":"r-30-VM","uuid":"62030daa-26a0-45bd-aa67-5ff289c24f78"}].
   2024-02-28T18:17:27,576 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Getting network stats for VM 
[{"name":"r-30-VM","uuid":"62030daa-26a0-45bd-aa67-5ff289c24f78"}].
   2024-02-28T18:17:27,578 DEBUG [kvm.resource.LibvirtVMDef] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Using informed label [hdc] for 
volume [null].
   2024-02-28T18:17:27,579 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Found [3] network interface(s) for 
VM [{"name":"r-30-VM","uuid":"62030daa-26a0-45bd-aa67-5ff289c24f78"}].
   2024-02-28T18:17:27,579 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Getting disk stats for VM 
[{"name":"r-30-VM","uuid":"62030daa-26a0-45bd-aa67-5ff289c24f78"}].
   2024-02-28T18:17:27,581 DEBUG [kvm.resource.LibvirtVMDef] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Using informed label [hdc] for 
volume [null].
   2024-02-28T18:17:27,582 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Found [2] disk(s) for VM 
[{"name":"r-30-VM","uuid":"62030daa-26a0-45bd-aa67-5ff289c24f78"}].
   2024-02-28T18:17:27,583 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Ignoring disk [<disk  
device='cdrom' type='file'><driver name='qemu' type='raw' /><source 
file=''/><target dev='hdc' bus='ide'/></disk>] in VM 
[{"name":"r-30-VM","uuid":"62030daa-26a0-45bd-aa67-5ff289c24f78"}]'s stats 
since its deviceType is [cdrom].
   2024-02-28T18:17:27,583 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Retrieved statistics for VM 
[{"name":"r-30-VM","uuid":"62030daa-26a0-45bd-aa67-5ff289c24f78"}]: 
[{"cpuTime":44390000000,"diskReadIOs":8189.0,"diskReadKBs":210813.0,"diskWriteIOs":2290.0,"diskWriteKBs":137775.0,"networkReadKBs":113924.603515625,"networkWriteKBs":617.99609375}].
   2024-02-28T18:17:27,584 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Writing VM 
[{"name":"r-30-VM","uuid":"62030daa-26a0-45bd-aa67-5ff289c24f78"}]'s CPU and 
memory information into the metrics.
   2024-02-28T18:17:27,584 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Trying to get free memory for VM 
[{"name":"r-30-VM","uuid":"62030daa-26a0-45bd-aa67-5ff289c24f78"}].
   2024-02-28T18:17:27,586 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Retrieved memory statistics 
(information about tags can be found on the libvirt documentation): [{tag:6
   2024-02-28T18:17:27,586 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Old stats exist for VM 
[{"name":"r-30-VM","uuid":"62030daa-26a0-45bd-aa67-5ff289c24f78"}]; therefore, 
the utilization will be calculated.
   2024-02-28T18:17:27,586 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Calculating CPU utilization for VM 
[{"name":"r-30-VM","uuid":"62030daa-26a0-45bd-aa67-5ff289c24f78"}].
   2024-02-28T18:17:27,586 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Calculating network utilization 
for VM [{"name":"r-30-VM","uuid":"62030daa-26a0-45bd-aa67-5ff289c24f78"}].
   2024-02-28T18:17:27,586 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Calculating disk utilization for 
VM [{"name":"r-30-VM","uuid":"62030daa-26a0-45bd-aa67-5ff289c24f78"}].
   2024-02-28T18:17:27,586 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Calculated metrics for VM 
[{"name":"r-30-VM","uuid":"62030daa-26a0-45bd-aa67-5ff289c24f78"}]: 
[{"cpuUtilization":0.9804736186123806,"diskReadIOs":305.0,"diskReadKBs":9680.0,"diskWriteIOs":86.0,"diskWriteKBs":528.0,"entityType":"vm","intFreeMemoryKBs":124744.0,"memoryKBs":262144.0,"networkReadKBs":7.5615234375,"networkWriteKBs":4.947265625,"numCPUs":1,"targetMemoryKBs":262144.0}].
   2024-02-28T18:17:27,586 DEBUG [kvm.resource.LibvirtConnection] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Looking for libvirtd connection 
at: qemu:///system
   2024-02-28T18:17:27,586 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Trying to get VM with name 
[i-2-29-VM].
   2024-02-28T18:17:27,587 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Getting CPU stats for VM 
[{"name":"i-2-29-VM","uuid":"c87d40b1-644a-4063-bc83-ba357f6f71c2"}].
   2024-02-28T18:17:27,587 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Getting network stats for VM 
[{"name":"i-2-29-VM","uuid":"c87d40b1-644a-4063-bc83-ba357f6f71c2"}].
   2024-02-28T18:17:27,589 DEBUG [kvm.resource.LibvirtVMDef] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Using informed label [hdc] for 
volume [null].
   2024-02-28T18:17:27,589 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Found [1] network interface(s) for 
VM [{"name":"i-2-29-VM","uuid":"c87d40b1-644a-4063-bc83-ba357f6f71c2"}].
   2024-02-28T18:17:27,589 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Getting disk stats for VM 
[{"name":"i-2-29-VM","uuid":"c87d40b1-644a-4063-bc83-ba357f6f71c2"}].
   2024-02-28T18:17:27,591 DEBUG [kvm.resource.LibvirtVMDef] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Using informed label [hdc] for 
volume [null].
   2024-02-28T18:17:27,591 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Found [2] disk(s) for VM 
[{"name":"i-2-29-VM","uuid":"c87d40b1-644a-4063-bc83-ba357f6f71c2"}].
   2024-02-28T18:17:27,592 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Ignoring disk [<disk  
device='cdrom' type='file'><driver name='qemu' type='raw' /><source 
file=''/><target dev='hdc' bus='ide'/></disk>] in VM 
[{"name":"i-2-29-VM","uuid":"c87d40b1-644a-4063-bc83-ba357f6f71c2"}]'s stats 
since its deviceType is [cdrom].
   2024-02-28T18:17:27,592 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Retrieved statistics for VM 
[{"name":"i-2-29-VM","uuid":"c87d40b1-644a-4063-bc83-ba357f6f71c2"}]: 
[{"cpuTime":36000000000,"diskReadIOs":14216.0,"diskReadKBs":15005.0,"diskWriteIOs":42.0,"diskWriteKBs":155.0,"networkReadKBs":4.1494140625,"networkWriteKBs":6.994140625}].
   2024-02-28T18:17:27,593 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Writing VM 
[{"name":"i-2-29-VM","uuid":"c87d40b1-644a-4063-bc83-ba357f6f71c2"}]'s CPU and 
memory information into the metrics.
   2024-02-28T18:17:27,593 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Trying to get free memory for VM 
[{"name":"i-2-29-VM","uuid":"c87d40b1-644a-4063-bc83-ba357f6f71c2"}].
   2024-02-28T18:17:27,594 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Retrieved memory statistics 
(information about tags can be found on the libvirt documentation): [{tag:6
   2024-02-28T18:17:27,594 WARN  [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Couldn't retrieve free memory, 
returning -1.
   2024-02-28T18:17:27,595 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Old stats exist for VM 
[{"name":"i-2-29-VM","uuid":"c87d40b1-644a-4063-bc83-ba357f6f71c2"}]; 
therefore, the utilization will be calculated.
   2024-02-28T18:17:27,595 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Calculating CPU utilization for VM 
[{"name":"i-2-29-VM","uuid":"c87d40b1-644a-4063-bc83-ba357f6f71c2"}].
   2024-02-28T18:17:27,595 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Calculating network utilization 
for VM [{"name":"i-2-29-VM","uuid":"c87d40b1-644a-4063-bc83-ba357f6f71c2"}].
   2024-02-28T18:17:27,595 TRACE [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Calculating disk utilization for 
VM [{"name":"i-2-29-VM","uuid":"c87d40b1-644a-4063-bc83-ba357f6f71c2"}].
   2024-02-28T18:17:27,595 DEBUG [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-1:[]) (logid:f0618de0) Calculated metrics for VM 
[{"name":"i-2-29-VM","uuid":"c87d40b1-644a-4063-bc83-ba357f6f71c2"}]: 
[{"cpuUtilization":3.590067479972077,"diskReadIOs":0.0,"diskReadKBs":0.0,"diskWriteIOs":0.0,"diskWriteKBs":0.0,"entityType":"vm","intFreeMemoryKBs":-1.0,"memoryKBs":524288.0,"networkReadKBs":0.041015625,"networkWriteKBs":0.41015625,"numCPUs":1,"targetMemoryKBs":524288.0}].
   ```
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to