Traffic Usage Command
Your monthly traffic usage statistics can be viewed via shell by running app-stats
.
- Login to your service via SSH
When you have logged in, execute app-stats show
and in the right-hand column you will see disk and traffic statistics on a weekly basis, as shown below.
*** disk stats ***
date value
0 2023-03-12 0
153 2023-03-19 1002
321 2023-03-26 1002
488 2023-04-02 1002
656 2023-04-09 1003
*** traffic stats ***
date value
0 2023-03-12 0
153 2023-03-19 103
321 2023-03-26 7
488 2023-04-02 23
656 2023-04-09 70
Usage Instructions
For detailed instructions on how to use the command, execute app-stats show --help
and you will be presented with all available command switches.
Switches:
-c, --count COUNT:int Choose number of stats you want for selected PERIOD
-s, --stats STATS:{'disk', 'traffic'} Choose type of stats data
-t, --type PERIOD:{'week', 'day', 'hour'} Select type of stats period
With the use of these switches you can customize the command to your liking. See examples below:
- Show last 10 days of traffic usage:
app-stats show -s traffic -t day -c 10
- Show last 48 hours of traffic usage:
app-stats show -s traffic -t hour -c 48
- Show last 10 days of disk usage:
app-stats show -s disk -t day -c 10
- Show last 24 hours of disk usage:
app-stats show -s disk -t hour -c 24