I've created a persistent disk in Google Compute Engine and attached it to an instance. What I am wondering however, is how can I monitor the free space on the disk? Can't see it either in the Google Cloud Console or from the gcloud
tool.
SSH to your instance and execute the command df . This will show you the allocated and free space for each file system.
Each persistent disk can be up to 64 TB in size, so there is no need to manage arrays of disks to create large logical volumes. Each instance can attach only a limited amount of total persistent disk space and a limited number of individual persistent disks.
Persistent storage is any data storage device that retains data after power to that device is shut off. It is also sometimes referred to as nonvolatile storage.
You can use (Google) Stackdriver monitoring: https://cloud.google.com/monitoring/
If you install the Monitoring Agent on your instance, the Volume Free Space (Agent) metric will then become available.
You can setup an alert to notify you at significant levels.
Note that the Agent is now only available with a Premium subscription.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With