Review GKE Cloud Monitoring collection settings

Check effective GKE metric collection and alerting policies.

Description

Omitting monitoringService from a historical GKE cluster request can leave the default collection active. Check Cloud Monitoring for recent CPU, memory or network metrics from the intended cluster.

Potential impact

Missing metrics can hide capacity shortages and hinder planning. Application metrics and alert policies need their own configuration.

Remediation

Use supported tooling to select the monitoring components you need and verify collection permissions. Set alert policies and recipients for key metrics. In a controlled test, confirm that an event meeting the policy’s condition reaches the intended recipient.

Examples

Standard support for Deployment Manager has ended. The historical fragment sets monitoringService: monitoring.googleapis.com/kubernetes. Supply location, networking and node configuration when creating a cluster.

Before

yaml
name: my-cluster
description: cluster

After

yaml
name: my-cluster
description: cluster
monitoringService: monitoring.googleapis.com/kubernetes

References