Disk/Traffic Usage Command
Your monthly traffic and disk usage statistics can be viewed via shell by running app-stats.
- Connect to your service via SSH.
- Once connected, execute
app-stats show. - In the right-hand column you will see disk and traffic statistics on a weekly basis, as shown below.
- Traffic stats is shown cumulatively and will reset on the date specified in the UCP.
- Disk stats will show currently used space in GB.
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 periodWith 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
If you require further assistance, you can open a support ticket here!
Feedback and suggestions regarding this article are welcome on our Discord server
- Disk/Traffic Usage Command
- Usage Instructions