How do I download my bandwidth usage stats on my Linode server?
Hello,
I'm prototyping a project right now using a Nanode 1GB and I would like to know the total amount of data that has been transferred to / from my server in the past 24 hours.
On the Analytics page I can see the total transfer history for this month, and I can see the transfer history for each hour, but I don't see an easy way to download this data.
My sysadmin skills are pretty rusty. Am I expected to just parse the NGINX logs to figure out the bandwidth usage myself?
Am I just missing a button somewhere to download the data on the analytics page?
Thanks
1 Reply
While I don't know of a way to download that information from Cloud Manager, I do think you probably have some options for getting this information.
First, there are two API calls that could help:
Both come with options for specifying a month and year if you want to see an entire month's information, but the default for Network Transfer is the current month so far. The default of the statistics is the last 24 hours and will show network traffic in bits/s.
If you find that isn't exactly what you need and you do go the route of looking through NGINX logs, you can probably set up a cron job or create a script solution that collects just the data you're looking for. This StackExchange post seems like it might be a good starting point.