In this tutorial
- What does the Usage graphs tab show?
- How is monthly transfer counted and why watch it?
- How do you track transfer with vnstat?
- How do you see what is using CPU and memory right now?
- How do you keep an eye on disk space and disk load?
- How do you get a warning before something fills up?
- What should you do when a limit gets close?
- How do you keep a longer history?
What does the Usage graphs tab show?
CPU, network and disk activity for that one instance, drawn from outside the operating system. Open Instances, pick the server, and choose Usage graphs. The graphs begin a few minutes after the server first runs.
Because they come from the host, they keep working even when the OS inside is too busy to answer SSH, which makes them the first place to look when a server feels slow. A flat CPU line at the top means the vCPUs are saturated; a sudden network climb often points to a backup job, a crawler or an attack; steady disk activity with low CPU suggests swapping or a database without enough memory.
The graphs give the shape of the load. For exact numbers and the process behind them, go into the server with the tools below.
How is monthly transfer counted and why watch it?
Each plan includes a fixed amount of outgoing transfer per month, shown on its plan page, and extra transfer is not sold. That makes it worth knowing your monthly figure early, so you can size the next plan with the right allowance instead of finding out late.
Take A2-4 as a reference: it includes 5 TB a month. Typical consumers of outgoing traffic are web pages and downloads served to visitors, VPN users browsing through the server, blockchain nodes syncing peers, and backups pushed to another location. Incoming traffic, such as pulling packages or a restic restore from elsewhere into the server, is not what the allowance counts.
How do you track transfer with vnstat?
vnstat reads interface counters from the kernel and keeps a small database, so it costs almost nothing to run.
sudo apt-get install -y vnstat
sudo systemctl enable --now vnstat
ip -brief link # find the main interface, often eth0 or ens3
vnstat -i eth0 --onelineGive it a few minutes to collect, then read the views you care about:
vnstat -m # per month, rx = in, tx = out
vnstat -d 7 # last seven days
vnstat -l # live rate, Ctrl+C to stop
vnstat -h # hourly chart for todayThe tx column is the outgoing side. Multiply the daily average by the days left in the month to see where you will land. vnstat starts counting when you install it, so the first month is partial; install it on the day you deploy.
How do you see what is using CPU and memory right now?
Use htop for the overview and free for memory, then sort by what matters.
sudo apt-get install -y htop
htop
free -h
uptimeIn htop, press F6 to sort by CPU or memory, t for a tree view, and F4 to filter by name. In free -h, read the available column, not free; Linux uses spare memory for disk cache and hands it back when programs ask. uptime prints load averages for 1, 5 and 15 minutes. Compare them with the vCPU count from nproc; a 15 minute value steadily above it means work is queueing.
To find the process that was busy a moment ago, not just now:
ps -eo pid,comm,%cpu,%mem,rss --sort=-%cpu | head -n 10How do you keep an eye on disk space and disk load?
Check space with df, find the big folders with du, and look at I/O with iostat.
df -h /
sudo du -xh --max-depth=1 / 2>/dev/null | sort -h | tail -n 12
sudo journalctl --disk-usage
sudo apt-get install -y sysstat
iostat -xz 5 3Common space eaters are old logs, Docker images and build cache, database binary logs and forgotten backups in /root. Trim the journal with sudo journalctl --vacuum-size=300M. In iostat, a %util close to 100 on the main disk with long await times means the disk, not the CPU, is the bottleneck.
How do you get a warning before something fills up?
A short script run by cron can check transfer, disk and memory and write to the journal, or post to a webhook of your own.
sudo tee /usr/local/bin/usage-check >/dev/null <<'EOF'
#!/bin/sh
LIMIT_GB=4000 # set to about 80% of your monthly transfer
IFACE=eth0
TX=$(vnstat -i "$IFACE" --oneline b | cut -d\; -f10)
TX_GB=$((TX / 1000000000))
DISK=$(df --output=pcent / | tail -n1 | tr -dc '0-9')
TOTAL=$(grep MemTotal /proc/meminfo | tr -dc '0-9')
AVAIL=$(grep MemAvailable /proc/meminfo | tr -dc '0-9')
MEM=$((100 - AVAIL * 100 / TOTAL))
[ "$TX_GB" -ge "$LIMIT_GB" ] && logger -t usage "transfer at $TX_GB GB this month"
[ "$DISK" -ge 85 ] && logger -t usage "disk at $DISK percent"
[ "$MEM" -ge 90 ] && logger -t usage "memory at $MEM percent"
exit 0
EOF
sudo chmod 755 /usr/local/bin/usage-check
echo '*/30 * * * * root /usr/local/bin/usage-check' | sudo tee /etc/cron.d/usage-checkSet LIMIT_GB from the allowance on your plan page. Read alerts with journalctl -t usage, or replace logger with a curl call to a chat webhook you own.
What should you do when a limit gets close?
Find the cause first, then decide between tuning and a larger plan.
- Transfer: look for the top talkers with
sudo apt-get install -y nethogs && sudo nethogs eth0. Turn on compression in your web server, put large static files behind a cache, or move bulk downloads elsewhere. - Memory: lower worker counts in PHP-FPM or your app server, cap database buffers, and add a swap file for short peaks.
- Disk: clean logs and images, then move bulk data off the server if it keeps growing.
- CPU: profile the busy process; if the load is genuine, a plan with more vCPUs is the fix.
If the numbers keep climbing after tuning, follow the move to a larger plan tutorial. Plans with more cores also include more transfer, as the price list shows.
How do you keep a longer history?
For trends over weeks, sysstat can record every ten minutes, and vnstat already keeps months of traffic.
sudo sed -i 's/^ENABLED=.*/ENABLED="true"/' /etc/default/sysstat
sudo systemctl enable --now sysstat
sar -u -f /var/log/sysstat/sa$(date +%d -d yesterday)
vnstat -m 12sar -u prints yesterday's CPU by interval; sar -r shows memory and sar -n DEV network. If you run several instances, a small monitoring stack such as Prometheus with node_exporter on one server can collect them all; bind exporters to localhost or allow only your monitoring address in the firewall.
Questions about this tutorial
Is there an alert in the console when transfer runs high?
The console shows the graphs; alerts are up to you. The cron script above or a monitoring stack covers that inside the server.
Can I buy extra transfer for one month?
No. Overage is not sold, so choose a plan whose allowance fits, or move to a larger one as traffic grows.
Why do vnstat and the Usage graphs differ slightly?
They measure from different points, inside the guest and on the host, and on different time grids. Small differences are normal; the trend should match.
Does incoming traffic count toward the allowance?
The listed monthly transfer is outgoing. Downloads into the server, such as packages, are not what it measures.
Which plan has the most transfer per dollar?
Compare the transfer column on the price list; the AMD EPYC and Intel Xeon Performance lines generally include more transfer than plans of a similar price in the Standard and High Frequency lines.