Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL
All skills

gke-cost-analysis

Answer GKE cost questions with BigQuery billing queries and live cluster utilization checks.

  • Part of google/skills
  • 6.4k installs
  • DevOps & Self-hosting · Containers and clusters

When to use it

You have a GKE cluster and a billing export table, but need to know which namespace or workload is driving costs.

For example

You say

Use gke-cost-analysis to find my most expensive namespaces over the last 30 days. My billing export is my-project.billing.gcp_billing_export_resource_v1_ABC123.

You get
  • bq query for namespace costs
  • Ranked cost breakdown
  • Cost allocation check

How it works

  • Distinguishes Autopilot (billed on pod requests) from Standard (billed on node VMs) when explaining cost drivers.
  • Compares kubectl top usage against requested resources to spot over-provisioning.
  • Enabling cost allocation is a cluster change and only labels data from that point forward.

Before installing

Namespace and workload cost breakdown requires GKE Cost Allocation enabled on the cluster; the BigQuery billing export table path must be provided.