Installing Stackdriver Kubernetes Engine Monitoring support for GKE

Installing Stackdriver Monitoring support allows you to easily monitor GKE clusters, debug logs, and analyze your cluster's performance using advanced profiling and tracing capabilities. In this recipe, we will enable Stackdriver Kubernetes Engine Monitoring support to collect cluster metrics from our GKE cluster. Follow these steps:

  1. Open the Google Kubernetes Engine Console at https://console.cloud.google.com/kubernetes. On this console, you will see a list of your GKE clusters. Here, we have one cluster called k8s-devops-cookbook-1:

  1.  Click on the little pen-shaped Edit icon next to your cluster:

  1. On the cluster configuration page, make sure that Legacy Stackdriver Logging and Legacy Stackdriver Monitoring are Disabled and that the Stackdriver Kubernetes Engine Monitoring option is set to Enabled:

  1. Click on the Save button to apply these changes to your cluster.