Jesse Shieh
Jesse Shieh

Reputation: 4850

GKE Disk Utilization Monitoring/Alerting

I've run into some disk pressure issues under GKE (too many job pods that weren't cleaned up) and I want to somehow be alerted next time I run low on disk space. I looked in Stackdriver Monitoring, but I only see disk read/write bytes/operations. In order to get disk usage/utilization, I think I have to install the stackdriver agent, but I'm not sure if this is possible under GKE. Is there some way to monitor disk utilization for GKE nodes?

Upvotes: 3

Views: 3249

Answers (2)

schizo
schizo

Reputation: 93

Was searching for this today. The recommended answer relates to a legacy metric. Now the following metric is available: metric.type="kubernetes.io/node/ephemeral_storage/allocatable_bytes" resource.type="k8s_node"

Upvotes: 2

Martin Zeitler
Martin Zeitler

Reputation: 76799

when installing the Stackdriver Agent, there are per default only these two disk metrics available: container/disk/bytes_total and container/disk/bytes_used. in fact, one cannot really monitor the disk utilization alike that.

rather see Creating Custom Metrics, with an Alerting Policy.

Upvotes: 2

Related Questions