> For the complete documentation index, see [llms.txt](https://docs.onelens.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.onelens.cloud/rate-optimization/rate-optimization-for-gcp.md).

# Rate Optimization for GCP

Go to **Optimize → Rate Optimization → GCP**. The page has three tabs: **Overview**, **Compute** and **Renewals & Inventory**.

OneLens tracks these GCP discount types:

| Benefit      | What it is                                                                                                                                  |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| Resource CUD | A commitment to a set amount of vCPU and memory in a region                                                                                 |
| Flex CUD     | A spend-based commitment that applies across machine families and regions, for Compute Engine and other eligible services such as Cloud Run |
| Service CUD  | A spend-based commitment for a specific service, such as Cloud SQL                                                                          |
| BQ Capacity  | A BigQuery capacity commitment                                                                                                              |
| SUD          | Sustained use discounts, applied automatically by Google to eligible VMs that run for most of the month                                     |

### Overview tab

<figure><img src="https://3963693991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiyNGpqVYfmDF6qt7Lzar%2Fuploads%2FZzETIGC9m5TbhMW2BLfL%2Fimage.png?alt=media&amp;token=c954a2e6-0457-4eaf-be49-e6b94b1e3529" alt=""><figcaption></figcaption></figure>

#### Savings view

Choose whether sustained use discounts count as savings:

* **CUD Savings Only** counts committed use discounts only.
* **Include SUD Savings** adds sustained use discounts.

The choice changes Net Savings, Commitment ESR, Savings Composition and the Net Savings column in the service table.

#### Commitment Overview

Total GCP usage cost, total eligible OD cost, total covered cost, and commitment coverage.

#### Savings Overview

| Card             | Figures                                                                     |
| ---------------- | --------------------------------------------------------------------------- |
| Realized savings | Covered OD cost, commitment fees, net savings (realized) and commitment ESR |
| Opportunity      | Eligible uncommitted usage cost, potential savings, and negotiated savings  |

**Savings Composition** splits your savings by benefit type: Resource CUD, Flex CUD, Service CUD and BQ Capacity.

#### Key Trends

Daily charts for Coverage, Utilization and Commitment ESR, each with a rating badge.

#### Spend coverage by service

<figure><img src="https://3963693991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiyNGpqVYfmDF6qt7Lzar%2Fuploads%2FaAL0drQRZha0OKl1luDZ%2Fimage.png?alt=media&amp;token=6bbb16aa-789a-4682-bdcf-26abf5797ce4" alt=""><figcaption></figcaption></figure>

Two cards show how many services are eligible for a commitment (for example 6 of 20) and how many of those are covered (for example 1 of 6).

| Column                                                                  | What it shows                                                 |
| ----------------------------------------------------------------------- | ------------------------------------------------------------- |
| Eligible Benefits                                                       | The discount types this service can use                       |
| Total Service Cost                                                      | The service's total cost                                      |
| Eligible OD Cost                                                        | Spend that commitments could cover                            |
| Covered Cost                                                            | Commitment cost applied to this service                       |
| Covered OD Cost                                                         | The on-demand value of usage covered                          |
| Coverage                                                                | Covered OD cost as a share of eligible OD cost                |
| Net Savings                                                             | What commitments saved on this service                        |
| ESR                                                                     | Effective savings rate for this service                       |
| Potential Savings                                                       | Estimated savings on the uncovered usage                      |
| Recommended Benefit                                                     | The discount type OneLens recommends for this service         |
| <\<CONFIRM = name and meaning of the column after Recommended Benefit>> |                                                               |
| Commitments                                                             | Number of commitments applied. Click the eye icon to see them |

### Compute tab

The Compute tab breaks down Compute Engine coverage.

<figure><img src="https://3963693991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiyNGpqVYfmDF6qt7Lzar%2Fuploads%2FEPYCOZoF9pxuaf5FIZhH%2Fimage.png?alt=media&amp;token=b4d31350-26d4-433c-ae3d-05681c407815" alt=""><figcaption></figcaption></figure>

**Coverage Split** shows eligible spend, the amount covered by each commitment type, the uncovered amount, and coverage %. Switch between **By Machine Family** and **By Region**, and sort by eligible cost.

**CPU vs Memory Coverage by Pool** shows vCPU and memory coverage separately for each pool (machine family and region, for example C2D · asia-south1). Resource CUDs commit vCPU and memory separately, so a pool can be well covered on one and not the other. The **Average Coverage** row gives the overall figure.

### Renewals & Inventory tab

<figure><img src="https://3963693991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiyNGpqVYfmDF6qt7Lzar%2Fuploads%2FgTFfeV81EKm4EKBxAQis%2Fimage.png?alt=media&amp;token=6fc08b24-f26b-492c-a982-74fe0364abe2" alt=""><figcaption></figcaption></figure>

Three cards show **Active Commitments**, commitments **Expiring Soon (within 90 days)**, and the **Expiring Monthly Value**.

Commitments are listed by expiry month. Each card shows the expiry date, days left, name and ID, type, status, region, scope, utilization and net savings. Turn on **Include Expired Commitments** to see past commitments too.

Click a commitment to open its details.

<figure><img src="https://3963693991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiyNGpqVYfmDF6qt7Lzar%2Fuploads%2FVAQNxvCN2OoQBmfvJ2mF%2Fimage.png?alt=media&amp;token=6f740094-98c6-49c1-ad4b-8a60d0005cb0" alt=""><figcaption></figcaption></figure>

| Section             | What it shows                                                                                                                          |
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| Commitment Overview | Spend utilization, net savings, commitment fee, and days until renewal                                                                 |
| Savings Breakdown   | Covered OD cost, consumed commitment cost, gross savings, unused commitment cost, net savings and effective discount                   |
| Commitment Details  | Commitment ID, scope, region, eligible services, commitment amount, term, billing model, start and expiry dates, auto-renew and status |

In the Savings Breakdown, net savings is gross savings minus unused commitment cost. Effective discount is gross savings divided by covered OD cost.

Click **View in GCP Console** to open the commitment in Google Cloud, or **Report Issue** to flag a problem with the data.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.onelens.cloud/rate-optimization/rate-optimization-for-gcp.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
