Skip to main content

Traffic/Disk Usage Command

Your monthly traffic and disk 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.

All traffic and disk values are presented in GB.

 *** disk stats ***
            date  value
07986  2023-02-20   3775
8113  2023-02-26   3463
8281  2023-03-05   3580
8449  2023-03-12   03625
1538617  2023-03-19   10023752
3218785  2023-03-26   10023372
4888952  2023-04-02   10023080
6569120  2023-04-09   10033277
 *** traffic stats ***
            date  value
07986  2023-02-20   3570
8113  2023-02-26   4224
8281  2023-03-05    182
8449  2023-03-12    0430
1538617  2023-03-19    103760
3218785  2023-03-26   71102
4888952  2023-04-02     2358
6569120  2023-04-09    70354

Traffic and disk values are shown accumulatively and traffic will be reset on the date specified in the UCP.

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