Detection
Detection

Cost Anomaly Alerts: Issues When Log Volume, Retries or Tokens Jump

By Sazabi Team

Last verified on Nov 10, 2026.

Money leaves through behavior before it shows on an invoice. A deploy adds a noisy line. A job retries forever. A field starts carrying a unique value per request. A prompt grows. The Sazabi agent sets up sensors for your project, and four of them watch these behaviors directly in your logs.

The four live signals

  • Log volume spike. A deploy suddenly gets very noisy. One debug line that now fires for every request is the classic case.
  • Cardinality jump. A field suddenly has far more distinct values, such as thousands of new cache keys a minute.
  • Retry storm. The same operation retried in tight loops, such as one job retried many times for each record.
  • LLM spend spike. Token usage jumps by feature or customer. It also feeds agent misbehavior.

The agent writes, backtests and maintains these sensors from the fields and jobs in your own logs.

Example: a debug line left in

This is an example, not output from a real project. The service name is made up. A release of catalog-api ships with a debug statement inside the product-lookup path:

2026-11-08T13:30:02Z DEBUG catalog-api lookup sku=A-10492 cache=miss region=us-east source=primary
2026-11-08T13:30:02Z DEBUG catalog-api lookup sku=A-10492 cache=hit  region=us-east source=replica
2026-11-08T13:30:02Z DEBUG catalog-api lookup sku=B-20871 cache=miss region=us-east source=primary

The log volume sensor sees this project logging far above its usual volume. It fires. The agent investigates and finds the release where the volume began and the line responsible.

The issue could be named "catalog-api log volume jumped after release", medium severity. It tells you the extra lines are almost all one statement. Nobody has to open a billing console to learn this, and the fix is one line of code that you can hand to a coding agent with sazabi issues agent-prompt.

Why not read the bill

A bill arrives late and shows a sum. A sensor sees the cause: this service, this field, this job, this customer. By the time a cloud invoice shows the effect, the behavior it measures has run for days. The tradeoff is scope. These sensors see what your logs show, so spend that does not leave a mark in logs is invisible to them.

How you get told

A detection records a signal and starts an investigation. If the cause is harmless, such as a planned migration, it closes without an issue. If the cause is real, an issue opens, with severity, an optional component and the analysis attached.

Cost issues suit a quiet route. Send the Issue triggered notification to the owning team by component, and keep high severity for the shared channel. Repeats fold into the open issue.

What you need

Logs from the services involved. Retry storms need operations with an identifiable key. Cardinality jumps need fields to compare over time. Token spikes need one line per model call.

What it does not cover

  • Cloud provider billing and resource spend. There is no live signal for it.
  • Cost that never appears in logs, such as idle instances.
  • Fixing the cause. The issue explains it; your team ships the change.

Read the cost anomaly detection guide for the by-hand approach. See also the guides on cardinality jumps and LLM spend spikes, and the glossary on cardinality. For metering, see pricing.

What Sazabi detects today

There are no monitors or alert rules to write: the Sazabi agent automatically sets up sensors for your project and maintains them over time. Sazabi opens an issue when one fires.

  • Cardinality jump: A field suddenly has far more distinct values. Example: Thousands of new cache keys per minute.
  • Retry storm: The same operation retried in tight loops. Example: One background job retried 30 times per record.
  • Log volume spike: A deploy suddenly gets very noisy. Example: One debug line now logs 40M times a day.
  • LLM spend spike: Token usage jumps by feature or customer. Example: One customer's agent loop burns a week of budget in a day.

Frequently Asked Questions

Does Sazabi read my cloud bill?

No. Cloud spend anomalies are not covered today. This category watches the behaviors in your logs that usually cause a bill to grow: more log volume, retry loops, exploding field values and LLM token use.

Which signals feed cost anomalies?

Four live signals: log volume spike, cardinality jump, retry storm and LLM spend spike. You set nothing up. The Sazabi agent sets up sensors for your project and maintains them over time.

Why is a retry storm a cost problem?

Every retry is another request, another billed call and another log line. A job retried in a tight loop multiplies work without adding any result.

Do launches and batch jobs cause false alarms?

Regular daily and weekly rhythms do not count as a spike. A one-off backfill can still look like one. The investigation decides whether it opens an issue.

Sources

  1. What an issue carries, severity, lifecycle, folding of recurrences, response actions (accessed Nov 8, 2026)
  2. Issue triggered notification, channels and delivery rules (accessed Nov 8, 2026)
  3. Signals, managed investigation, issues arriving already investigated (accessed Nov 8, 2026)
  4. Listing sensor signals with the CLI (accessed Nov 8, 2026)