Detecting GCP Committed Use Discount (CUD) Regional & Machine-Family Drift
Google Cloud Resource-Based CUDs lock a 55% three-year discount to a specific Compute Engine machine family and region. When a Kubernetes platform team upgrades node pools from Intel N2 to AMD N2D without converting to a Spend-Based Flex CUD or moving workloads back, BigQuery billing exports silently charge twice: once for the unutilized N2 commitment fee and again at full on-demand rates for N2D.
Monthly BigQuery Billing Diff (us-central1, 730 Hours)
Baseline represents 192 vCPU and 768 GB RAM running inside the existing 3-year N2 Resource-Based CUD. Actual reflects the post-migration billing export where the N2 reservation sits at 0% utilization while 192 N2D vCPU and 768 GB RAM bill at unallocated on-demand tariffs:
| GCP Billing Component | Unit-Hours (730h) | Contracted CUD Rate | Actual Effective Rate | Monthly Waste USD |
|---|---|---|---|---|
Stranded Commitment: N2 Core (us-central1) |
140,160 vCPU-hr | $0.00000 (utilized) | $0.01422/hr (unused) | $1,993.08 |
Stranded Commitment: N2 RAM (us-central1) |
560,640 GB-hr | $0.00000 (utilized) | $0.001906/hr (unused) | $1,068.58 |
Uncovered On-Demand: N2D Core Overflow |
140,160 vCPU-hr | $0.01237/hr (55% CUD) | $0.02749/hr (on-demand) | $2,119.22 |
Uncovered On-Demand: N2D RAM Overflow |
560,640 GB-hr | $0.001658/hr (55% CUD) | $0.003684/hr (on-demand) | $1,135.86 |
| Total Monthly CUD Drift | 4 Billing Lines | — | Double-Billed | $6,316.74 |
Reproducible API Payload (POST /api/v1/diff)
{
"domain": "cloud_billing",
"baseline": "sku,region,qty_hours,expected_rate_usd,actual_rate_usd\nN2-CUD-Core-Unused,us-central1,140160,0.00000,0.00000\nN2-CUD-RAM-Unused,us-central1,560640,0.00000,0.00000\nN2D-Core-Compute,us-central1,140160,0.01237,0.01237\nN2D-RAM-Compute,us-central1,560640,0.001658,0.001658\n",
"actual": "sku,region,qty_hours,expected_rate_usd,actual_rate_usd\nN2-CUD-Core-Unused,us-central1,140160,0.00000,0.01422\nN2-CUD-RAM-Unused,us-central1,560640,0.00000,0.001906\nN2D-Core-Compute,us-central1,140160,0.01237,0.02749\nN2D-RAM-Compute,us-central1,560640,0.001658,0.003684\n"
}
Deterministic DiffProofReport
{
"ok": true,
"domain": "cloud_billing",
"summary": "GCP CUD family drift across us-central1: $3,061.66 unused N2 commitment + $3,255.08 N2D on-demand overflow = $6,316.74/mo.",
"total_delta_usd": 6316.74,
"recoverable_overcharge_usd": 6316.74,
"severity": "high",
"line_item_findings": [
{ "id": "gcp-cud-1", "category": "stranded_commitment", "item": "N2-CUD-Core-Unused", "baseline_value": "$0.00", "actual_value": "$1,993.08", "delta_usd": 1993.08, "severity": "high", "claim_action": "Merge or re-route batch GKE pools back onto N2 family in us-central1" },
{ "id": "gcp-cud-2", "category": "stranded_commitment", "item": "N2-CUD-RAM-Unused", "baseline_value": "$0.00", "actual_value": "$1,068.58", "delta_usd": 1068.58, "severity": "medium", "claim_action": "Enable billing-account-level CUD sharing across all sibling projects" },
{ "id": "gcp-cud-3", "category": "uncovered_ondemand", "item": "N2D-Core-Compute", "baseline_value": "$1,733.78", "actual_value": "$3,853.00", "delta_usd": 2119.22, "severity": "high", "claim_action": "Request GCP CUD merge/split exception or shift N2D workloads to N2" },
{ "id": "gcp-cud-4", "category": "uncovered_ondemand", "item": "N2D-RAM-Compute", "baseline_value": "$929.54", "actual_value": "$2,065.40", "delta_usd": 1135.86, "severity": "medium", "claim_action": "Cover residual N2D capacity with Spend-Based Compute Flex CUD (46% off)" }
],
"reproducible_counterexamples": [
{ "item": "N2D-Core-Compute", "formula": "192 * 730 * (0.02749 - 0.01237)", "expected": 1733.78, "observed": 3853.00, "delta_usd": 2119.22 }
],
"sha256_proof": "89f12219de86b092df67dae5f68fdbd7f757f432d3f5a18b0b7b9b4aba8973c2",
"cache_hit": false,
"verification": { "verified": true, "precision_usd": 0.01 },
"billed_micros": 80000
}
us-central1 consume the idle N2 pool immediately. Second, run a scheduled weekly POST /api/v1/diff job from BigQuery export tables; identical clean weeks incur strictly $0.
Diff a GCP Billing Export Now Next: AWS EDP Audit · llms.txt