Skip to main content
discount · gcp

Production Cloud SQL instances busy enough for a committed use discount

resource types
1
rule IDs covered
1
severity
low

What does ZopNight detect here?

Production Cloud SQL instances are flagged when 60 days of history show them running at least 70% of the time with CPU or memory averaging 30% or more. Google's spend-based Cloud SQL CUDs cut vCPU and memory prices 25% for a 1-year term and 52% for 3 years, and ZopNight prices the saving from the instance's live rates.

Signal and threshold

How ZopNight evaluates Production Cloud SQL instances busy enough for a committed use discount.
Field Value
Rule IDsRC-146
Categorydiscount
Severitylow
Metriccloudsql.googleapis.com/database/cpu/utilization
Threshold70% uptime and 30% average CPU or memory
Evaluation window60d
SourceZopNight
Permissions usedcloudsql.instances.list · monitoring.timeSeries.list

What a Cloud SQL commitment buys and locks in

Cloud SQL committed use discounts are spend-based. You commit to a consistent amount of usage, measured as hourly on-demand spend, in one region for one or three years. Google’s Cloud SQL CUD page lists the discount as 25% for a 1-year term and 52% for a 3-year term, the same in every region. The discount applies automatically to CPU and memory of MySQL, PostgreSQL and SQL Server instances in that region, including Enterprise and Enterprise Plus editions.

The limits matter as much as the rate. Shared-core machine types such as db-f1-micro are excluded, and so are storage, backups, IP addresses, outbound data transfer and licensing. Usage above the commitment is billed on demand. And a commitment cannot be cancelled once bought.

Sizing a commitment from your own data

List instances with their tier and labels, which is where production status usually shows:

Terminal window
gcloud sql instances list \
--format="table(name,region,settings.tier,settings.userLabels)"

Then chart cloudsql.googleapis.com/database/cpu/utilization and cloudsql.googleapis.com/database/memory/utilization over the last 60 days in Metrics Explorer. The lowest steady level across your production instances in a region is a safe commitment size.

Four gates before a recommendation appears

  1. The instance looks like production: its name contains prod, production or live, or an env, environment, stage or tier label is set to prod, production, prd or live.
  2. ZopNight has at least 60 days of history for it, and it was running at least 70% of that time.
  3. Measured CPU or memory utilisation averages at least 30%, so the commitment covers real load.
  4. The instance has a known cost and Google’s live rates show a positive commitment discount.

When ZopNight holds back

If any gate fails, or utilisation has never been measured, there is no finding. A break-even check then compares a commitment billed for all 730 hours of a month with on-demand for the hours the instance really ran; when the commitment would cost more, the rule stays silent. Non-production instances are never considered, however steady they look.

How the saving is calculated

Terminal window
saving = on-demand cost for measured running hours - 1-year commitment cost (730 h)
fallback when running hours are unknown: saving = monthly cost x live commitment discount

The finding quotes the resulting percentage for the instance.

Buying the commitment

  1. Confirm the instance, or its replacement in the same region, will run for at least a year.
  2. Add up steady hourly spend across production instances in the region and commit to that baseline rather than peak.
  3. Purchase the Cloud SQL commitment in the billing console’s committed use discounts page for that region.
  4. Review coverage monthly; spend above the commitment is simply billed on demand.

See it fire on your bill.

Connect an account read-only. The first findings land in minutes.

472 rule families across 353 resource types on 22 platforms. Every threshold, metric, and IAM action is documented on these pages before you grant anything.

472 rule families documented
353 resource types covered
read-only default access level
Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console· Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console·