How detection works
After each daily billing sync, InfraAudit runs an anomaly check on the new data point:- Compute the expected value using a 7-day exponentially weighted moving average (EWMA) of the previous 14 days.
- Compute the upper bound: expected value × (1 + threshold).
- If
actual spend > upper bound, flag the day as an anomaly.
Why EWMA instead of a simple average
Simple moving averages treat all past days equally. EWMA weights recent days more heavily, which means the model adapts faster when your baseline spend genuinely increases (for example, after a new production workload launches) without continuing to flag that new level as an anomaly after it stabilizes.Day-of-week correction
Cloud billing often varies predictably by day of week — lower spend on weekends for bursty compute workloads, for instance. InfraAudit’s model compares each day against the same day of week from previous weeks to reduce false positives from predictable weekly patterns.What triggers an anomaly (and what doesn’t)
| Scenario | Anomaly? |
|---|---|
| AWS bill spikes 50% due to accidental EC2 over-provisioning | Yes |
| Billing increases 15% after a planned deployment (within threshold) | No |
| Daily spend is 35% above the EWMA baseline | Yes |
| Gradual 3-week increase where the trend stays within bounds | No |
Configure anomaly alerts
Set up alerts under Settings → Notifications. A common configuration routes all anomalies above $50/day to the FinOps team via email. Each anomaly alert includes:- The affected provider and a service-level cost breakdown
- Actual versus expected spend
- Percentage over the expected value
- A link to the Cost Trend chart zoomed to the anomaly date
Investigate an anomaly
In the Cost section, anomalies appear as colored spike markers on the trend chart. Click a marker to open the anomaly detail, which shows:- Which services drove the spend increase
- Comparison to the previous 7-day average
- Related resources, if resource-level billing attribution is available
Dismiss false positives
If a cost increase is expected — for example, after a planned migration to larger instances — dismiss the anomaly to prevent alert noise:Tune the threshold
Adjust the threshold to match your workload’s natural variance:0.30 (30%). Changes take effect on the next daily billing sync.