# Get told about a cost spike early

By the end of this guide, a cost spike reaches the people who can act on it as soon as the provider has delivered the day it started, each one is triaged in the product, and the charts show when an alert fired. It is for the engineering lead or CTO who owns cloud spend and wants to hear about a jump before the invoice does. The path starts with what Costfluent detects on its own, sends it to the team, adds alerts for the lines you draw yourself, and ends with triage. Each step links to the page that owns the detail.

## Before you start

- A connection with a few weeks of cost history: detection compares each day with the days before it. See [How anomalies are detected](/optimization/insights#how-anomalies-are-detected).
- Edit access to the workspace, to change an anomaly's status and to create cost alerts; and an organization role that can change the workspace's settings and add notification channels, for step 2. See [Access model](/concepts/access-model) and [Set up a workspace](/admin/organization-and-workspaces#set-up-a-workspace).
- The steps need a real connection: nothing is sent from the [sample data](/quickstart#sample-data) a new organization starts with.

## 1. Read what is detected without setup

Anomaly detection runs for every workspace with no rule to write. Open **Insights**: the "Cost anomalies" card opens on "To review", the newest anomalies still open or acknowledged. Each names the service, its severity, the "Expected" and "Actual" cost, and the resources and SKUs behind the rise. "How anomalies are detected" opens the rules: only increases count, a day must stand out against the days before it and against the same weekday and the same day of the month before, so a weekly job or a monthly fee stays quiet, and a service that starts costing money is told as new spend. See [Review anomalies](/optimization/insights#review-anomalies).

## 2. Send anomalies to the team

A new anomaly always creates an in-product notification in the workspace. To reach the team too, add the team's email channel under **Settings**, then **Notifications**, and send a test; see [Notification channels](/planning/notification-channels). Then open the workspace's page from **Workspace settings** in the header and choose that channel under **Anomaly notifications**. Under **Anomaly detection**, keep **Notify anomalies** on and set **Notify from** to the smallest rise worth someone's attention: a smaller anomaly still shows on **Insights** and notifies no one. Each anomaly notifies once. See [Anomaly notifications](/admin/organization-and-workspaces#anomaly-notifications).

## 3. Add an alert of your own, replayed before saving

Detection scores each service on each connection by itself. For a line you draw yourself, such as the whole workspace's spend jumping from one day to the next, or one team's cost rising against the week before, create a cost alert. On **Alerts**, select **New alert** and start from a template such as **Daily spend jump** or **Weekly change**, or open a saved cost report and choose **Create alert** under **More actions** to watch its filter. Enter the **Threshold** and read the **Replay** panel, which marks each past day the alert **Would have notified**. Change the threshold or the filter until it fires as often as the team wants to hear from it, pick the team's email channel under **Send to**, and select **Create alert**. An alert fires once when it crosses its threshold and stays silent while spend stays over it. See [Create a spend or change alert](/planning/alerts#create-a-spend-or-change-alert) and [Replay an alert before saving it](/planning/alerts#replay-an-alert-before-saving-it).

## 4. Triage what arrives

**What fired**, on **Alerts**, lists the workspace's anomalies and cost alert firings in one feed, newest first. For an anomaly, "Open in report" opens a cost report with the evidence around the day it was charged, and "Around this day", on **Insights**, lists the notes and changes from your connections dated on or just before that day. Then decide:

- "Acknowledge" an anomaly someone is looking into. It stays under "To review", marked as acknowledged.
- "Archive" an anomaly once it is explained, or "Ignore" it with a reason, such as a planned load test.
- On a cost alert firing that was planned, select "Mark expected", give a **Reason (optional)** and confirm with **Mark expected**. The alert stays silent until spend is back under its threshold.

When the cause needs digging, follow [Investigate a cost increase](/guides/investigate-a-cost-increase). See [What fired](/planning/alerts#what-fired) and [Insights](/optimization/insights).

## 5. Find each firing on the charts

A spend threshold or percentage change alert that fires marks the chart of every saved report whose filter is the same as its own with a "Cost alert" annotation, so an alert created from a report marks that report. Marking a firing expected adds its reason as a note on those reports. **Annotations**, in the side navigation, lists every note and marker of the workspace: type an alert's name into **Search notes and names** to see each day it fired. See [Markers from cost alerts](/cost-reports/annotations#markers-from-cost-alerts).

## Check the result

- The workspace's page names the team's channel under **Anomaly notifications**, and the test you sent in step 2 arrived where the team reads it.
- **Configured alerts**, on **Alerts**, lists your cost alert with its **Threshold** and the state Armed.
- Once the alert fires, its entry shows in **What fired**; a spend threshold or percentage change alert created from a saved report also leaves a "Cost alert" marker on that report's chart.

## Keep it true

- Costfluent recommends a short pass over **What fired** twice a week: an open anomaly archives itself a week after its charge day, and detection reads days a few days back, so a weekly pass can miss one.
- When the team says it hears too much or too little, change **Notify from** or the alert's **Threshold**; the **Replay** panel shows what a new threshold would have done before you save it.

## From your assistant

With the [Costfluent MCP server](/developers/mcp) connected, your assistant answers these with `list_anomalies` and `list_annotations`.

```text
Which cost anomalies from the last seven days are still unacknowledged, and which resources or SKUs drove each one's increase?
```

```text
Which cost alerts left a marker on our saved reports this month, and on which reports does each marker stand?
```

## Related

- [Insights](/optimization/insights), [Alerts](/planning/alerts) and [Annotations](/cost-reports/annotations)
- [Cost anomaly runbook template](https://costfluent.com/handbook/templates/cost-anomaly-runbook), to agree who triages an anomaly, how fast, and how it is closed
- [Investigate a cost increase](/guides/investigate-a-cost-increase)
