Mr.Wang from Next Door Asked: 2016-04-11 20:36:07 +0800 CST2016-04-11 20:36:07 +0800 CST 2016-04-11 20:36:07 +0800 CST Google Cloud : check disk space usage 772 How to check the used disk space of Google Persistent Disk without looking into each of them? google-compute-engine google-cloud-storage 5 Answers Voted Dalibor Tesanovic 2018-06-04T17:49:44+08:002018-06-04T17:49:44+08:00 The workaround with snapshot size will work in the console. For more precise (and quicker) detailed overview you can SSH into your instance and do: sudo df -h The response you get will look similar to this: YOURUSERNAME@YOURINSTANCENAME:~$ sudo df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 9.8G 9.3G 0 100% / udev 10M 0 10M 0% /dev tmpfs 743M 81M 663M 11% /run tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup /dev/sdb 197G 60M 197G 1% /mnt/new_disk Entries starting with /dev/ under 'Filesystem' are your disks. Dalibor Tesanovic 2017-11-27T03:55:32+08:002017-11-27T03:55:32+08:00 I use a simple workaround for this. Create a snapshot of your persistent disk, and look at the snapshot size: Best Answer nelasx 2016-04-27T05:45:07+08:002016-04-27T05:45:07+08:00 You can't see it in the disk preview as Faizan said, But you could Use Google StackDriver Monitoring tool to get a nice preview of your instances status. douniwan5788 2021-09-20T09:16:55+08:002021-09-20T09:16:55+08:00 Just install Monitoring Agents in https://console.cloud.google.com/monitoring/dashboards/resourceList/gce_instance then check the dashboard Darlan Dieterich 2019-08-24T08:59:05+08:002019-08-24T08:59:05+08:00 In your terminal use this command to detect files size and which directory is more bulky: ncdu /
The workaround with snapshot size will work in the console.
For more precise (and quicker) detailed overview you can SSH into your instance and do:
The response you get will look similar to this:
Entries starting with /dev/ under 'Filesystem' are your disks.
I use a simple workaround for this.
Create a snapshot of your persistent disk, and look at the snapshot size:
You can't see it in the disk preview as Faizan said, But you could Use Google StackDriver Monitoring tool to get a nice preview of your instances status.
Just install Monitoring Agents in https://console.cloud.google.com/monitoring/dashboards/resourceList/gce_instance then check the dashboard
In your terminal use this command to detect files size and which directory is more bulky: