Google Kubernetes Engine (GKE) includes native integration with Cloud Monitoring and Cloud Logging. When you create a GKE cluster, Cloud Operations for GKE is enabled by default and provides a monitoring dashboard specifically tailored for Kubernetes.
With Cloud Operations for GKE, you can control whether or not Cloud Logging collects application logs. You also have the option to disable the Cloud Monitoring and Cloud Logging integration altogether. For more information on the installation instructions, see Installing Monitoring and Logging support for GKE.
About Cloud Operations for GKE
Cloud Operations for GKE is designed to monitor GKE clusters. It manages Monitoring and Logging services together and features a Cloud Operations for GKE dashboard that provides a customized interface for GKE clusters:
In the summary pane, you can view a cluster's key metrics, such as CPU utilization, memory utilization, and the number of open incidents.
You can view clusters by their infrastructure, workloads, or services.
You can inspect namespaces, nodes, workloads, services, pods, and containers.
For pods and containers, you can view metrics as a function of time and view log entries using the Logs Viewer.
Which monitoring and logging option should I use?
You can use the default Cloud Operations for GKE dashboard or opt-in to use Legacy Logging and Monitoring. Both options are generally available as of GKE version 1.12.7. Here are some issues to consider:
Cloud Operations for GKE is the default option, starting with GKE version 1.14.
Legacy Logging and Monitoring is also a generally available option; however, it lacks features and improvements present in Cloud Operations for GKE.
Only Legacy Logging and Monitoring lets you disable Cloud Logging while still using Cloud Monitoring.
Selecting your Google Cloud's operations suite support for GKE
If you are using Legacy Logging and Monitoring, then you must switch to Cloud Operations for GKE before support for Legacy Logging and Monitoring is removed. Legacy Logging and Monitoring will no longer be supported as of GKE 1.15. The table below details compatibility across GKE versions:
|GKE version||Legacy Logging and Monitoring||Cloud Operations for GKE|
|1.10 – 1.12.5||Default||Opt-in (Beta)|
For information on the deprecation of Legacy Logging and Monitoring, refer to the Legacy support for GKE deprecation guide.
Cloud Operations for GKE is priced based on the amount of logs and metrics collected. See the Pricing page for details.
Cloud Operations for GKE how-to guides
Installing Cloud Operations for GKE: Describes how to enable Cloud Operations for GKE in new and existing clusters.
Migrating to Cloud Operations for GKE: Describes the differences between Legacy Logging and Monitoring and Cloud Operations for GKE and what you must change in your Google Cloud's operations suite configurations as part of updating your monitoring and logging integration.
Observing your system: Describes the Cloud Operations for GKE dashboard interface, how to organize cluster information, and how to view alerting details.
auditdlogs: Describes how to enable verbose, OS-level audit logging on GKE cluster nodes and how to export logs to Cloud Logging.