Lesson 5 of 5 Understand Usage and Cost

Anomaly Management

Unexpected spending can grow quickly in a variable cost model. This lesson explains how Anomaly Management detects, routes, investigates and resolves cost anomalies, and how it differs from budget alerting.

Learning outcomes

After completing this lesson, you will be able to:

  • Define a cost anomaly.
  • Distinguish anomaly detection from budget alerts.
  • Describe the anomaly management process.
  • Explain how to balance detection sensitivity against alert fatigue.

What an anomaly is

A cost anomaly is an unexpected change in spending or usage: a deviation from the pattern that history and plans would predict. Examples include a runaway batch job, a misconfigured autoscaling policy, a logging change that multiplies storage, an unexpected data transfer path, or compromised credentials used to run expensive resources. Anomalies can also be unexpected drops, which may indicate a broken service.

The Anomaly Management capability covers the whole process: detecting anomalies, notifying the right people, investigating causes, resolving them, and learning from them.

Anomalies compared with budget alerts

Anomaly detection and budget alerting are often confused. The following comparison sets out the difference.

Anomaly detection
TriggerSpending deviates from its expected pattern
DetectsUnexpected changes, even when well within budget
TimingUsually within a day of the change
ExampleA service normally costing USD 200 a day costs USD 2,000 today
Budget alert
TriggerSpending crosses a fixed threshold, such as 80% of budget
DetectsApproaching or exceeding an approved amount, expected or not
TimingOften late in the period, as cumulative spend grows
ExampleMonth-to-date spend reaches USD 80,000 of a USD 100,000 budget

Both are useful, and mature practices use both. An anomaly in a small service may never threaten the budget, yet still represents waste worth fixing; a budget overrun may come from planned, expected growth.

The following diagram compares anomaly detection with a budget alert for a sudden change.

Why anomaly detection beats a budget alert for a sudden change. A misconfigured job adds a fixed daily amount of data transfer for weeks. An anomaly model compares each day with the normal pattern and flags the first day; the monthly budget alert reacts only to cumulative spend and stayed silent because the team was under budget, so the cost builds up unnoticed.
Bar heights are illustrative.

The anomaly management process

The following steps describe a typical anomaly management process.

  1. Detect

    Tools compare actual cost and usage with expected patterns, using statistical or machine learning models, at the finest useful level (account, service, team).

  2. Notify

    Alerts go to the owner of the affected cost, through channels they use, with enough context to act. This depends on allocation.

  3. Investigate

    The owner determines whether the change was expected (a launch, a test) or a problem, and its cause.

  4. Resolve

    Problems are fixed, such as stopping a runaway job; expected changes are acknowledged so that models learn.

  5. Learn

    Causes and responses are recorded, thresholds tuned, and recurring causes prevented through policy or automation.

Put in order

Managing an anomaly

Exam skills 5.1.4

Put the steps of the anomaly management process in order.

Log in to try this activity Interactive activities are free with an account.

Balancing sensitivity and noise

Detection thresholds involve a trade-off. Very sensitive detection catches small problems early but produces many false alarms, and owners who receive too many alerts start ignoring them (alert fatigue). Insensitive detection is quiet but misses costly problems. Practices tune thresholds by the size of the cost and the owner's tolerance, combine percentage and absolute thresholds (for example, more than 30% and more than USD 500 a day), and measure how quickly anomalies are resolved.

Scenario questions

Tuning anomaly alerts

Exam skills 5.1.4

Balance sensitivity and noise in anomaly alerts.

Log in to try this activity Interactive activities are free with an account.
Worked example

The unnoticed spike

A misconfigured job copied the same data between regions every five minutes for three weeks, adding USD 1,800 a day in data transfer charges. The team's monthly budget alert did not fire because the team was still under budget. What would have caught it sooner?

Anomaly detection. The team's data transfer cost changed sharply from its normal pattern on the first day, which an anomaly model would flag within about a day, while the budget alert only reacts to cumulative spend. Routing the anomaly to the team that owns the job, which requires accurate allocation, would have limited the cost to one or two days instead of about USD 38,000 over three weeks.

Worked example

Too many alerts

Engineers receive about 60 anomaly alerts a week, most for changes of a few dollars, and have created email rules to file them unread. What should the FinOps team change?

The detection is too sensitive, causing alert fatigue. The team should add absolute thresholds so that only changes with meaningful cost alert, send alerts to the team channel rather than to individuals, allow owners to acknowledge expected changes so that models learn, and review alert volume and resolution time as KPIs. Fewer, relevant alerts will be acted on.

Check yourself

Can a cost anomaly occur while a team is well within its budget?

Show answer

Yes. An anomaly is an unexpected change from the normal pattern, regardless of the budget. A small service whose cost suddenly multiplies may still be far below its budget but is wasting money.

Exam Tips

Remember for the exam

  • An anomaly is an unexpected change from the expected pattern, up or down.
  • Anomaly detection catches unexpected changes early; budget alerts catch threshold crossings.
  • The process is detect, notify the owner, investigate, resolve and learn.
  • Routing anomalies to owners depends on allocation.
  • Tune thresholds with percentage and absolute limits to avoid alert fatigue.