Sub topic 3
Choosing a cost metric
This chapter assumes you can open Cost Explorer in the console and know what an AWS Organization is. It covers the cost metrics Cost Explorer offers and how to pick one for a given question. The same dollar of spend can show up as different numbers depending on the metric.
The four metrics
A cost metric is the rule Cost Explorer uses to turn billing line items into a number.
| Metric | What it shows | Typical use |
|---|---|---|
| Unblended cost | The charge as it appears on the invoice when the usage occurred. Upfront fees for reservations appear in the month they are paid. | Reconciling with the bill. |
| Amortized cost | Upfront and recurring Reserved Instance and Savings Plans fees spread across the term, so each day carries its share. | Comparing team or project spend fairly. |
| Net unblended cost | Unblended cost after discounts such as credits and private pricing are applied. | Seeing what you actually pay. |
| Net amortized cost | Amortized cost after those discounts. | Fair comparison of what you actually pay. |
Usage quantity is a separate option. It counts units such as instance hours or gigabytes instead of dollars. Use it to ask whether a cost rose because you used more or because the price changed.
Blended cost, which averages rates across the accounts of an organization, is also available. Most analysis does not need it.
Why the choice changes the answer
Suppose a team buys a one-year Savings Plan with an upfront payment of 1,200 dollars in October. Their EC2 usage in later months then shows little or no charge.
- Unblended cost shows a spike of 1,200 dollars in October and near zero afterwards.
- Amortized cost shows about 100 dollars per month for twelve months.
Unblended cost is correct for matching the invoice. Amortized cost is better for answering "what does this project cost per month?"
Choosing the metric in the CLI
The metric is a parameter of the query. This command from the plan returns October 2026 cost per service as unblended cost. The End date is exclusive.
aws ce get-cost-and-usage \
--time-period Start=2026-10-01,End=2026-11-01 \
--granularity MONTHLY \
--metrics UnblendedCost \
--group-by Type=DIMENSION,Key=SERVICETo use another metric, change the --metrics value to AmortizedCost, NetUnblendedCost, NetAmortizedCost or UsageQuantity. You can pass several metrics in one call.
Common errors
- Comparing numbers from different metrics. A console report on amortized cost will not match an invoice line. Check the metric first.
- Reading a reservation spike as a usage spike. Switch to amortized cost or usage quantity before investigating.
- Adding usage quantity across services. Hours and gigabytes are different units. Group by usage type or service before reading the numbers.
- Expecting net metrics to differ when you have no discounts. Without credits or special pricing, net values equal the non-net values.
Exercise
In March your team pays 2,400 dollars upfront for a one-year Savings Plan. A colleague sees a large March spike in a Cost Explorer report and says EC2 usage tripled. Which metric would you switch to in order to check, and what would you expect to see?
Show answer
Switch to amortized cost (or usage quantity). Amortized cost spreads the 2,400 dollars across the twelve months, about 200 dollars per month, so the March spike disappears if it was only the upfront fee. Usage quantity would show whether instance hours actually rose.