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)?
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.