StackSpendDocs

Anomaly Detection

StackSpend automatically detects unusual spend patterns after every provider sync — no configuration required. This guide explains how detection works, what alert types exist, and how to act on anomalies.

How it works

After each provider sync, StackSpend analyses your cost data and compares it against historical baselines. If spend deviates beyond expected bounds, an anomaly is created and surfaced in your Inbox and Tasks.

There is nothing to configure. Detection runs automatically for every connected provider as soon as new cost data arrives.

Note.Anomalies are detected per-provider (e.g. “AWS”), not per individual account. If you have multiple AWS accounts connected, a spike in one account is surfaced as an AWS anomaly rather than an account-level alert.

How baselines are built

StackSpend computes statistical baselines per provider and per service from your historical cost data. For each dimension, it tracks:

StatisticPurpose
MeanCentre of the expected spend range
Standard deviationWidth of the normal spend band — how much variation is typical
MedianRobust centre that is less sensitive to past spikes
High-spend markerUpper bound that filters routine high-spend periods from true anomalies

The sample size behind each baseline is tracked internally. Confidence in detection increases as more data accumulates — detection with less than two weeks of history may produce more false positives or miss subtler deviations.

Tip.If you have just connected a provider, give it at least two weeks of synced data before relying heavily on anomaly alerts. Budget threshold alerts (set in Budgets) are effective immediately and are a good complement while baselines are still forming.

Alert types

StackSpend raises four distinct anomaly types. Each type indicates a different pattern and calls for a different response.

TypeWhat it meansCommon causes
SpikeActual spend significantly above the expected baseline for that periodRunaway jobs, misconfigured autoscaling, traffic surge, accidental resource creation
DropSpend significantly below baseline — useful for detecting service outages or unexpected shutdownsBroken deployment pipeline, accidentally terminated resources, provider outage, credential revocation
Trend changeSpend trajectory shifting upward or downward across multiple periods, even if no single period looks anomalousGrowing usage that will exceed budget, pricing change, gradual resource leak
New serviceA service or model that has not appeared before starts incurring costShadow IT, new team using a provider feature, accidental service activation

Severity levels

Each anomaly is assigned a severity based on two factors: how far spend has deviated from the normal range, and the absolute dollar impact. Both matter — a large deviation on a low-cost service may be less urgent than a moderate deviation on a high-cost one.

SeverityTypical signalInbox label
LowMinor deviation, small absolute deltaFor you
MediumMeaningful deviation or growing trendFor you
HighLarge deviation or significant dollar impactNeeds attention
CriticalExtreme deviation with high absolute cost impactNeeds attention

Alert lifecycle

Anomaly alerts move through a simple lifecycle so your team can track what has been looked at and what is resolved.

StateMeaning
NewJust detected, no one has looked at it yet
AcknowledgedA team member has seen it and is investigating
ResolvedThe anomaly has been investigated and closed, optionally with a note explaining the cause
False positive / DismissedThe alert was not a real issue — dismissing it feeds back to the detector to improve future accuracy

Acting on anomalies

There are three places to work through anomaly alerts:

Inbox

The Inbox is the primary triage surface. Alerts are split into two tabs:

  • For you — lower-severity items assigned or relevant to you
  • Needs attention — High and Critical alerts requiring prompt action

Tasks

The Tasks page shows all open anomaly-derived tasks. Filter by the Alert type column to focus on spikes, drops, trend changes, or new services.

Data Explorer

Clicking into any anomaly opens the Data Explorer pre-filtered to the relevant provider and service, so you can immediately drill into the underlying cost data.

Teaching the detector

StackSpend's anomaly detector improves over time based on your feedback:

  • Dismissing as “false positive” — signals to the detector that this pattern is expected. Future occurrences of the same pattern are less likely to fire at the same severity.
  • Resolving with a note — records context alongside the anomaly (e.g. “end-of-quarter data migration”). Notes are visible to your whole team, building institutional memory around recurring spend events.
Tip.Set a budget for providers you care about — budget threshold alerts fire independently of anomaly detection and catch gradual overspend that anomaly detection may not flag. See the Budgets guide to configure thresholds.

Related guides

Anomaly Detection — StackSpend Docs — StackSpend Docs