wido commented on issue #3078: Add influxdb to statscollector
URL: https://github.com/apache/cloudstack/pull/3078#issuecomment-452317071
 
 
   I tested this PR on a Management Server with about 500 Virtual Machines 
pointing to a InfluxDB host running on localhost:
   
   <pre>
   influx://localhost/cloudstack
   </pre>
   
   <pre>
   select * from vm_stats where "uuid" = 'e6d24a2d-e0be-4c03-97e0-10f8c174d952' 
limit 10;
   </pre>
   
   This gives me:
   
   <pre>
   name: vm_stats
   time                cpu_utilization    cpus disk_read_iops disk_read_kbs 
disk_write_iops disk_write_kbs free_memory_kb memory_target_kbs 
network_read_kbs network_write_kbs total_memory_kb uuid
   ----                ---------------    ---- -------------- ------------- 
--------------- -------------- -------------- ----------------- 
---------------- ----------------- --------------- ----
   1546953311416000000 1.7296236866399965 4    0              0             49  
            372            1107448        1048576           81.8798828125    
24.482421875      1048576         e6d24a2d-e0be-4c03-97e0-10f8c174d952
   1546953382106000000 1.7512640171736857 4    37             148           36  
            268            1107440        1048576           39.2119140625    
9.4521484375      1048576         e6d24a2d-e0be-4c03-97e0-10f8c174d952
   1546953452507000000 1.7377875603521726 4    3              24            18  
            148            1107436        1048576           33.11328125      
6.845703125       1048576         e6d24a2d-e0be-4c03-97e0-10f8c174d952
   1546953522550000000 1.723891783853237  4    0              0             26  
            164            1107436        1048576           25.9814453125    
7.3857421875      1048576         e6d24a2d-e0be-4c03-97e0-10f8c174d952
   1546953592598000000 1.7190043698055009 4    0              0             13  
            84             1107436        1048576           32.1337890625    
6.2998046875      1048576         e6d24a2d-e0be-4c03-97e0-10f8c174d952
   1546953662614000000 1.7098837707399264 4    0              0             10  
            56             1107436        1048576           48.1611328125    
4.1865234375      1048576         e6d24a2d-e0be-4c03-97e0-10f8c174d952
   1546953923278000000 1.7195329715760286 4    0              0             57  
            396            1107436        1048576           181.3916015625   
19.5771484375     1048576         e6d24a2d-e0be-4c03-97e0-10f8c174d952
   1546953993215000000 1.719533618564588  4    0              0             25  
            140            1107440        1048576           26.53515625      
6.849609375       1048576         e6d24a2d-e0be-4c03-97e0-10f8c174d952
   1546954063451000000 1.705160334909153  4    0              0             17  
            120            1107436        1048576           25.1455078125    
4.5224609375      1048576         e6d24a2d-e0be-4c03-97e0-10f8c174d952
   1546954133494000000 1.7505853129282778 4    0              0             17  
            112            1107436        1048576           35.251953125     
12.580078125      1048576         e6d24a2d-e0be-4c03-97e0-10f8c174d952
   </pre>
   
   Inside the Virtual Machine I downloaded a 1.8GB ISO from a URL and 
afterwards I checked the data in InfluxDB:
   
   <pre>
   > select SUM(network_read_kbs)/1024 from vm_stats where "uuid" = 
'e6d24a2d-e0be-4c03-97e0-10f8c174d952';
   name: vm_stats
   time sum
   ---- ---
   0    1903.6460638046265
   > 
   </pre>
   
   As you can see, the VM has moved 1900MB of traffic which is in line with the 
1.8GB ISO I downloaded.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to