Filters
How to search
  • Plain words find names, texts and examples.
  • "two words" finds the exact phrase.
  • --name or -x finds an option.
  • #word looks only inside commands.
  • @grep finds lessons and labs that use grep.
  • Filters: cat:network · in:labs · in:notes · level:rhcsa · ch:8 · root:yes. Put ! before a word to leave it out. OR between words means one of them.
  • ↑ ↓ to move · Enter to open · Esc to close · / to search

FinOps & cloud costMixed 21 series

Responding to a cost anomaly in one hour

A cost anomaly is an incident with a clock. The first hour decides whether you contain it or explain it next month.

Quick reference

Confirm, locate, contain, fix: the first sixty minutes of a bill spike.

  1. Confirm — Ten minutes on the data, the day and the account before you chase a service.
  2. Locate — Group by service, account, usage type and resource until one row carries the delta.
  3. Contain — Reversible changes, recorded with a timestamp, agreed before they touch production.
  4. Prevent — A budget, a monitor, an owner tag and a note that names the detection lag.

In one line: An hour is enough to stop the burn. It is not enough to fix the reason, and that is the next day's work.

Start this week:

  • Run the confirm list before you open a console.
  • Keep the containment commands in a tested runbook.
  • Write the note the same day, while the timings are real.

Explained

Minute 0 to 10

Confirm the number before you chase it. Cost data lands late, and an alert built on half a day of data is a false positive with a timestamp. Compare against the same weekday last month, then find the service that moved most.

Minute 10 to 30

Group by service, account, usage type and resource. One row carries the delta. A resource count that jumped is a deploy, a request count that jumped is a loop.

Minute 30 to 45

Contain with reversible changes, each recorded with a time and an owner. A change that cannot be reversed in ten minutes is a second incident.

Minute 45 to 60

Fix the cause and write it in one sentence. The next day, add the guardrail: a budget, a monitor, an owner tag and a note that records the detection lag.

Checklist

Containment buys time; it does not fix the cause. Each check is reversible, and each one is recorded before it is applied.

Stop the spend

  • Cap the autoscaling group at its current size.
  • Disable the schedule or job that creates the resources.
  • Remove the public endpoint if traffic is the driver.

Reduce the burn

  • Shorten log and metric retention to the policy minimum.
  • Pause the batch job that rewrites the same objects.
  • Move non-urgent work to a queue for the morning.

Keep the evidence

  • Export the cost and usage rows for the window.
  • Record every change with a timestamp and an owner.
  • Note what you did not change, and why.

Tell someone

  • Post the plan and the time in one channel.
  • Name the person watching the burn this hour.
  • Agree when containment gets reviewed, and by whom.

The field guide

The full guide of the PDF (P996), page by page.

Confirm the anomaly is real (minute 0 to 10)

An alert is a hypothesis. In the first ten minutes you decide whether the number is wrong, the data is late, or the spend is real.

Open the cost explorer on the same dimension the alert used, then widen by one day. Cost data lands late: yesterday's line can still grow for most of today, and an alert built on incomplete data is a false positive with a timestamp.

  • Compare the day against the same weekday last month, not against yesterday.
  • Check whether a new account or region appeared in the totals.
  • Find the single service that moved more than the rest combined.
  • Confirm when the alert last fired, and whether anyone acted.

Two of the three outcomes end the incident here. A threshold set below the normal weekly shape is a tuning problem, not an outage, and late data resolves itself by the next refresh. Only the third outcome, a real and unexplained delta, needs the rest of this runbook.

Write the clock down Record the minute you started, the number you saw and where you saw it. The note that begins at minute zero is the one that survives review, and the detection lag is the most valuable number in it.

Ten minutes of checking saves an hour of chasing the wrong service.

Find the one service that moved (minute 10 to 30)

Cost anomalies are rarely spread. One service, one account or one usage type usually carries most of the delta, and finding it is a grouping problem.

Group the last seven days by service, then by account, then by usage type. The order matters: service tells you what is expensive, account tells you who owns it, and usage type tells you whether the cause is compute, storage, transfer or requests.

By serviceWhat the money was spent on
By accountWho owns the spend
By usage typeWhich meter moved
By resourceThe row to open next

A usage type that jumps without a matching resource count is usually data transfer or a request count. A resource count that jumps is a deployment. The two have different fixes, and the second is usually the cheaper one to undo.

Suspect the deploy Most spikes follow a release, a migration, a retry loop or a public endpoint. Read the deployment log before the pricing page: the answer is usually a change someone made on purpose.

One row carries most of the delta. Find it before you fix anything.

Fix the cause, not the bill (minute 45 to 60)

By the end of the hour you should be able to say what will still be running tomorrow, and what has been removed.

  • Delete what the incident created: volumes, snapshots, endpoints.
  • Fix the retry or the loop, not only its symptom.
  • Right-size the resource that was sized for a load test.
  • Add the lifecycle rule that kept old objects alive.

The hardest case is a legitimate workload that grew. That is not an incident, it is a forecast that was wrong. Treat it as a budget change with an owner and a date, not as a temporary fix that nobody revisits.

Leave the read-only evidence in place until the note is written. Deleting the oversized volume is correct; deleting the panel that showed it was oversized is how the same hour is spent again next quarter.

Check what the fix costs to keep. A smaller instance that needs twice the engineering time is not a saving, and a cache that removes a database read usually is.

Then write the change into the repository, not into a console session. A fix that only exists on one host is a fix that expires with the next deploy.

One sentence, one owner Write the cause in one sentence and name one person. Two causes and a committee means the next incident starts from zero.

An anomaly you cannot explain in a sentence will happen again next month.

Make the repeat impossible (the next day)

The hour ends with a fix. The next day ends with a guardrail, or the same anomaly returns with a different resource id.

  • Tag the account so the next spike has an owner.
  • Add a budget with a warning threshold below the month-to-date run rate.
  • Add an alert on the usage type that moved, not only on the total.
  • Put the resource pattern into the weekly cost review.
BudgetWarn at 80 per cent, page at 100
Anomaly monitorOne per account and service
Tag policyOwner and cost centre required
ReviewWeekly, fifteen minutes, same slot

The guardrail is not the alert. It is the person who reads the alert and the report that tells them whether it matters. An alert with no owner is a message in a channel that someone mutes in week three.

The alarm you did not have If the only alert was the invoice, the incident started a month before anyone noticed. Move the signal from monthly to daily, then from daily to the hour.

The fix ends the incident. The guardrail ends the repeat.

What the incident note must contain (the record)

The note is the only artefact that turns one expensive hour into a cheaper year. Six fields cover it.

WindowStart, detection, containment, end
DriverService, account, usage type
DeltaShare of the month's forecast
CauseOne sentence, no hedging
FixWhat changed, and who changed it
GuardrailThe alert that fires next time

Two things make the note useless: a cause written as a list of suspects, and a fix written as a project. Neither can be checked next quarter, so neither changes how the next incident runs.

Cost incidents are usually found late because the signal is monthly and the cause is hourly. A note that records the detection lag tells you whether to invest in monitoring or in process, and those are different budgets.

No prices in the note Record percentages, hours and resource counts. A number copied from a pricing page is out of date before the review, and it invites an argument about the wrong thing.

The note is the product. The fix is the proof.

The honest caveat: the hour is for the burn, not the cause. A legitimate workload that grew is a forecast error, and it needs a budget owner rather than a rollback.

The lesson: confirm, locate, contain, fix, in that order.

Your turn: Which minute of your last spike was wasted?

More notes: FinOps & cloud cost

Open in the notes app: search, filters, copy This note on GitHub