Monitoring Google Container Engine Disk Use in Percent with Stackdriver

6/13/2017

Is there a way of checking the disk usage for volumes/pd's in the google cluster with stackdriver?
We found a way to check for bytes used, but this is pretty useless when there is no way to compare it to the limits (usage in percent)...
Also there is no bytes free metric.

I read about custom metrics, but did not understand how those might help here. Is there a way of adding a policy which does what we need (possibly via the api)?

-- kwiesmueller
diskspace
google-cloud-platform
google-cloud-stackdriver
google-kubernetes-engine
stackdriver

1 Answer

6/19/2017

You should be able to find this information using:

Metric: container/container/disk/bytes_total

Filter: project_id: <id> pod_id: <id> device_name: Volume:<name_of_volume>

You can use similar metric for bytes used.

-- Filip
Source: StackOverflow