Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instance network metrics calculation with API #9967

Open
meisammaleki opened this issue Nov 25, 2024 · 3 comments
Open

Instance network metrics calculation with API #9967

meisammaleki opened this issue Nov 25, 2024 · 3 comments

Comments

@meisammaleki
Copy link

meisammaleki commented Nov 25, 2024

ISSUE TYPE
  • Other
COMPONENT NAME

CLOUDSTACK VERSION 4.17.2

CONFIGURATION
OS / ENVIRONMENT
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

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

@DaanHoogland
Copy link
Contributor

@meisammaleki can you try your scenario with a newer version?

@meisammaleki
Copy link
Author

The only way for check newer version is to use ACS simulator which I'm not sure about its functionality, also I cannot upgrade the current environment to newer one

@DaanHoogland
Copy link
Contributor

no @meisammaleki , in a simulator this functionality can not be verified.

The only way for check newer version is to use ACS simulator which I'm not sure about its functionality, also I cannot upgrade the current environment to newer one

I'll try and find the time to verify it in a newer version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants