> 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.md).

# Rate Optimization

Rate Optimization shows how much of your eligible spend is covered by commitments, how much those commitments save, and when they expire. Commitments include AWS Savings Plans, GCP Committed Use Discounts and Azure reservations and savings plans.

Rate Optimization is available for AWS, GCP and Azure. Go to **Optimize → Rate Optimization** and pick a provider. To switch provider later, use the dropdown next to the page title.

<figure><img src="https://3963693991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiyNGpqVYfmDF6qt7Lzar%2Fuploads%2FPFBrVrG3uuL50iqOzQ24%2Fimage.png?alt=media&amp;token=edddc41b-4992-44ed-bcdc-15bd404f0ca9" alt=""><figcaption></figcaption></figure>

### What each provider page includes

| Provider | Tabs                                    |
| -------- | --------------------------------------- |
| AWS      | Overview, Renewals & Inventory          |
| GCP      | Overview, Compute, Renewals & Inventory |
| Azure    | Overview, Renewals & Inventory          |

### Key metrics

The same metrics appear across all three providers.

<figure><img src="https://3963693991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiyNGpqVYfmDF6qt7Lzar%2Fuploads%2FsRsjElB6OYYKCxnYitgv%2Fimage.png?alt=media&amp;token=49a06571-b360-41ec-91ae-a5e1c63ed107" alt=""><figcaption></figcaption></figure>

| Metric                            | What it means                                                          | How OneLens calculates it                                                           |
| --------------------------------- | ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| Eligible OD cost                  | Spend on services that commitments can cover, at on-demand rates       |                                                                                     |
| Covered OD cost                   | The on-demand value of the usage your commitments covered              |                                                                                     |
| Commitment fees (Committed spend) | What you paid for commitments in the period                            |                                                                                     |
| Net savings (realized)            | What your commitments saved                                            | Covered OD cost minus commitment fees                                               |
| Commitment coverage               | The share of eligible spend covered by commitments                     | Covered OD cost divided by eligible OD cost                                         |
| Utilization                       | The share of the commitment you paid for that was used                 | Consumed commitment cost divided by commitment fee                                  |
| Commitment ESR                    | Effective savings rate. Savings as a share of eligible spend           | Net savings divided by eligible OD cost                                             |
| Eligible uncommitted usage cost   | Eligible spend still billed at on-demand rates                         |                                                                                     |
| Potential savings                 | OneLens's estimate of the extra savings available on uncommitted usage | <\<CONFIRM = how Potential Savings is calculated (term, payment option, lookback)>> |

**Example.** Eligible OD cost is $10,000. Commitments covered $8,000 of it and cost $5,000.

* Net savings: $8,000 minus $5,000 = $3,000
* Commitment coverage: $8,000 divided by $10,000 = 80%
* Commitment ESR: $3,000 divided by $10,000 = 30%

If you used $4,900 of the $5,000 commitment, utilization is 98%.

The Key Trends charts on each Overview tab rate Coverage, Utilization and ESR with a badge such as **High** or **Average**.

### Page controls

* **Date range** and **Filters** set the period and scope of the data.
* **Currency** switches the display currency on the GCP and Azure pages.
* **Last Updated** shows when the data was last refreshed.
* **Pricing Completeness** <\<CONFIRM = what Pricing Completeness measures>>

### Rate Optimization alerts

OneLens has three ready-made workflow templates for commitments. Go to **Automate → Workflows**, open the **Templates** tab, and filter by **Rate Optimization**.

<figure><img src="https://3963693991-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiyNGpqVYfmDF6qt7Lzar%2Fuploads%2FBBHIaHweVzk5lIeOpEPX%2Fimage.png?alt=media&amp;token=36b400d7-3cfd-4e80-8187-d9dff4aa2232" alt=""><figcaption></figcaption></figure>

| Template                              | What it sends                                               | Default channel |
| ------------------------------------- | ----------------------------------------------------------- | --------------- |
| Commitment Expiry Email               | A monthly digest of commitments that are due to expire      | Email           |
| Monthly Commitment utilization digest | The status and utilization of all commitments for the month | Slack           |
| Weekly commitment utilization digest  | The status and utilization of all commitments for the week  | Email           |

To build your own, create a workflow and choose the **Rate Optimization** category in **Select a trigger**.


---

# 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.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.
