sureshanaparti commented on issue #12150:
URL: https://github.com/apache/cloudstack/issues/12150#issuecomment-4046571508

   @chunkyen I've created volume of 4.21, and upgrade to 4.22, both cases I 
could see the volume stats.
   
   ```
   (localcloud) 🐱 > list volumes 
filter=name,diskioread,diskiowrite,diskkbsread,diskkbswrite,virtualmachineid,vmname,vmstate,vmtype,storageid,storage,state
   {
     "count": 6,
     "volume": [
       {
         "diskioread": 3852,
         "diskiowrite": 1377,
         "diskkbsread": 142424,
         "diskkbswrite": 13058,
         "name": "ROOT-3",
         "state": "Ready",
         "storage": "ref-trl-11279-k-Mol8-suresh-anaparti-kvm-pri1",
         "storageid": "0c1e7b25-5b7e-378b-b45f-e42a3556c763",
         "virtualmachineid": "29c17426-1683-41e9-8ae2-9699da397900",
         "vmname": "test421vm01",
         "vmstate": "Running",
         "vmtype": "User"
       },
       {
         "diskioread": 39,
         "diskiowrite": 0,
         "diskkbsread": 436,
         "diskkbswrite": 0,
         "name": "DATA-3",
         "state": "Ready",
         "storage": "ref-trl-11279-k-Mol8-suresh-anaparti-kvm-pri1",
         "storageid": "0c1e7b25-5b7e-378b-b45f-e42a3556c763",
         "virtualmachineid": "29c17426-1683-41e9-8ae2-9699da397900",
         "vmname": "test421vm01",
         "vmstate": "Running",
         "vmtype": "User"
       },
       {
         "diskioread": 3854,
         "diskiowrite": 1396,
         "diskkbsread": 142424,
         "diskkbswrite": 13062,
         "name": "ROOT-5",
         "state": "Ready",
         "storage": "ref-trl-11279-k-Mol8-suresh-anaparti-kvm-pri1",
         "storageid": "0c1e7b25-5b7e-378b-b45f-e42a3556c763",
         "virtualmachineid": "61a61d77-16ec-4b6b-a895-ec213c478531",
         "vmname": "test421vm02",
         "vmstate": "Running",
         "vmtype": "User"
       },
       {
         "diskioread": 3877,
         "diskiowrite": 1212,
         "diskkbsread": 142424,
         "diskkbswrite": 12174,
         "name": "ROOT-7",
         "state": "Ready",
         "storage": "ref-trl-11279-k-Mol8-suresh-anaparti-kvm-pri1",
         "storageid": "0c1e7b25-5b7e-378b-b45f-e42a3556c763",
         "virtualmachineid": "78d55991-4b05-47fa-8d4c-3ffc5c6a945b",
         "vmname": "test422vm01",
         "vmstate": "Running",
         "vmtype": "User"
       },
       {
         "diskioread": 39,
         "diskiowrite": 0,
         "diskkbsread": 436,
         "diskkbswrite": 0,
         "name": "DATA-7",
         "state": "Ready",
         "storage": "ref-trl-11279-k-Mol8-suresh-anaparti-kvm-pri1",
         "storageid": "0c1e7b25-5b7e-378b-b45f-e42a3556c763",
         "virtualmachineid": "78d55991-4b05-47fa-8d4c-3ffc5c6a945b",
         "vmname": "test422vm01",
         "vmstate": "Running",
         "vmtype": "User"
       },
       {
         "diskioread": 3871,
         "diskiowrite": 1211,
         "diskkbsread": 142424,
         "diskkbswrite": 11894,
         "name": "ROOT-8",
         "state": "Ready",
         "storage": "ref-trl-11279-k-Mol8-suresh-anaparti-kvm-pri1",
         "storageid": "0c1e7b25-5b7e-378b-b45f-e42a3556c763",
         "virtualmachineid": "7a05cbdc-8f53-4520-baea-aacd26350215",
         "vmname": "test422vm02",
         "vmstate": "Running",
         "vmtype": "User"
       }
     ]
   }
   ```
   
   mysql> SELECT vm.name, vm_id, volume_id, current_io_read, current_io_write, 
current_bytes_read, current_bytes_write FROM cloud.vm_disk_statistics stat JOIN 
cloud.vm_instance vm ON vm.id = stat.vm_id;
   
+-------------+-------+-----------+-----------------+------------------+--------------------+---------------------+
   | name        | vm_id | volume_id | current_io_read | current_io_write | 
current_bytes_read | current_bytes_write |
   
+-------------+-------+-----------+-----------------+------------------+--------------------+---------------------+
   | test421vm01 |     3 |         3 |            3852 |             1368 |     
     145842688 |            13314048 |
   | test421vm01 |     3 |         4 |              39 |                0 |     
        446976 |                   0 |
   | test421vm02 |     5 |         6 |            3854 |             1387 |     
     145842688 |            13318144 |
   | test422vm01 |     7 |        10 |            3877 |             1201 |     
     145842688 |            12404736 |
   | test422vm01 |     7 |        11 |              39 |                0 |     
        446976 |                   0 |
   | test422vm02 |     8 |        12 |            3210 |              848 |     
     132305408 |             7477248 |
   
+-------------+-------+-----------+-----------------+------------------+--------------------+---------------------+
   6 rows in set (0.00 sec)


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to