Skip to main content

GKE Lens

GKE Lens allows you to consistently measure your Google Kubernetes Engine clusters against best practices and identify areas for improvement.

Once you complete the steps to set up GKE Cost Analytics, a GKE Lens icon will appear on your dashboard navigation bar, and the CMP will start gathering information about your GKE usage patterns and populate the GKE Lens dashboard.

Dashboard

The GKE Lens dashboard consists of several widgets that highlight different aspects of your GKE usage.

info

Widgets on the GKE Lens dashboard are updated every 12 hours by default, independent of each other. See Refresh report data for more information. See also GKE Cost Analytics Limitations.

GKE Infrastructure Cost

Shows the cost of the top 10 SKUs of GKE nodes across all clusters in the last 12 months with a forecast for the next 12 months.

Report configuration:

  • Metric: Cost
  • Aggregation: Total
  • ML Features: Forecast
  • Time Interval: Month
  • Time Range: Last 12 months
  • Group by: SKU
  • Filters:
    • Labels: goog-gke-node equals [Value N/A] (no specified value)
    • Top/bottom results: SKU Limit to top 10 by cost

Control Plane Cost

Shows the cost of the GKE control plane (also known as master node) across all clusters in the last 6 months.

Report configuration:

  • Metric: Cost
  • Aggregation: Total
  • Time Interval: Month
  • Time Range: Last 6 months
  • Group by: SKU, Region
  • Filters:
    • Metric filter: Cost not between -US$0.01 AND US$0.01
    • Standard: Service equals Kubernetes Engine (GKE)

Top Namespaces

Shows the top 10 K8s namespaces by cost across all clusters, excluding kube/default, in the last 6 months.

Report configuration:

  • Metric: Cost
  • Aggregation: Total
  • Time Interval: Month
  • Time Range: Last 6 months
  • Group by:
    • Standard: Scope (Project/Account)
    • Google Kubernetes Engine: GKE Namespace is not kube-system, kube-system-overhead, or default
  • Filters:
    • Top/bottom results: GKE Namespace Limit to top 10 by cost

Top clusters

Shows the top 10 K8s clusters by cost in the last 6 months.

Report configuration:

  • Metric: Cost
  • Aggregation: Total
  • Time Interval: Month
  • Time Range: Last 6 months
  • Group by:
    • Google Kubernetes Engine: GKE Cluster
  • Filters:
    • Top/bottom results: GKE Cluster Limit to top 10 by cost

Resources Breakdown

Shows the cost of K8s resources (cpu, memory, networkEgress, storage) across all clusters in the last 6 months.

Report configuration:

  • Metric: Cost
  • Aggregation: Total
  • Time Interval: Month
  • Time Range: Last 6 months
  • Group by:
    • Google Kubernetes Engine: GKE Resource

Interactive GKE Cost Explorer

Drills down from clusters to namespaces and apps interactively.

Report configuration:

  • Metric: Cost
  • Aggregation: Total
  • Time Interval: Month
  • Time Range: Last 30 days
  • Group by:
    • Google Kubernetes Engine: GKE Cluster, GKE Namespace
    • GKE Labels: app
  • Filters:
    • Top/bottom results:
      • GKE Cluster Limit to top 10 by cost
      • GKE Namespace Limit to top 10 by cost
      • app Limit to top 10 by cost

FAQ

How much does GKE Lens cost?

GKE Lens itself doesn't incur extra cost.

GKE Lens leverages the GKE Cost Analytics feature in CMP, which creates BigQuery dataset on your behalf and runs queries to provide you with analytics data. The cost for running the queries depends on the volume of your logs.