GitHub user meisammaleki created a discussion: Instance network metrics 
calculation with API

<!--
-->

##### ISSUE TYPE
<!-- Pick one below and delete the rest -->
 * Other

##### COMPONENT NAME
<!--
API
-->
~~~

~~~

##### CLOUDSTACK VERSION 4.17.2
<!--
New line separated list of affected versions, commit ID for issues on main 
branch.
-->

~~~

~~~

##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network, advanced 
networking, etc.  N/A otherwise
-->


##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->


##### SUMMARY
I need to calculate the amount of downloaded and uploaded traffic on each 
instance for accounting purpose
For example if Download value for an instance reach 20 GB in a week (Download a 
1GB file for 20 times)



##### STEPS TO REPRODUCE
<!--
I have tried to found this from ACS API's then I used 
"listVirtualMachinesMetrics"  

-->

<!-- Paste example playbooks or commands between quotes below -->
~~~

~~~

<!-- You can also paste gist.github.com links for larger files -->

##### EXPECTED RESULTS
I have downloaded this file with "wget" which it is approximately 2 GB with an 
instance and I except that the API show me a same value but was not same 
acctually. here is the like for download file 

https://github.com/szalony9szymek/large/releases/download/free/large

this is returned values form api :
"networkread": "41.20 MiB",
"networkwrite": "0.91 MiB",

~~~

~~~

##### ACTUAL RESULTS
<!-- 

 -->

<!-- Paste verbatim command output between quotes below -->
~~~

~~~


GitHub link: https://github.com/apache/cloudstack/discussions/12727

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to