Act on spend
Budgets and alerts
Monthly limits that alert the people who own the spend, and cost spikes. Nothing is ever blocked.
A budget tells the people you choose when spend nears or passes a monthly limit. It never blocks anything: switching off a feature your customers use is a decision for a person, not a threshold.
What a budget covers
Each budget is a monthly limit in one currency, for one of:
- The whole project
- A provider, such as AWS or OpenAI
- A service, as the bill names it, such as
AmazonEC2 - A team, feature, customer or user, as your tags or usage data name them. An owner's spend includes what usage data and allocation rules allocated to it, as Explore shows it.
- A saved view: the total Explore shows for one of the project's saved views, such as the payments team's spend on EC2 in one account. Renaming the view keeps the budget; it cannot be deleted while the budget measures it.
Only spend billed in the budget's currency counts. CostReveal never converts between currencies. Once a source states amortized or discounted cost, a budget measures spend in the cost type chosen for it, such as amortized cost for a team whose usage a Savings Plan covers.
Spend and forecast
Spend is month to date, from the bills themselves, and updates as each provider reports. Every provider reports a day late or later, so a day is complete once a later day has been billed.
The forecast states its method beside it:
Each budget is forecast from its own spend, day by day: each provider from its own last complete day, plus each day left in the month at its weekday's average over the four weeks before, or at the last seven days' average with under two weeks of history. A project, provider or service is read from the bills; an owner or a saved view from what Explore attributes to it, day by day, so a team's forecast follows the team's own spend, however the rest of the project moves. The Insights forecast is the same method for the whole project, with its range and confidence.
There is no forecast before three complete days of the month. Once there is one, Show burn-down under a budget draws its month adding up day by day against the limit: what was spent as a solid line, the forecast dashed from the last complete day with its range shaded, through to the month's last day, where it meets the forecast. Each day's exact amounts show on hover, and from the keyboard, the arrow keys move from day to day, with each day read out to a screen reader. Month by month shows what the budget's scope spent in each of the last twelve months.
Alerts
| Alert | Raised when |
|---|---|
| Budget warning | Spend passes the warning threshold, 80 percent by default |
| Budget passed | Spend passes the critical threshold, 100 percent by default |
| Budget forecast | The month is forecast to pass the limit, while it is not yet passed |
| Cost spike | A service's last complete day rises well above the seven days before it |
| Savings opportunity | A new way to save worth at least 1 percent of the last 30 days' spend: a recommendation of AWS, Azure Advisor or Google Cloud Recommender, a Kubernetes cluster's idle capacity last month, or a container requesting more than it uses |
| Weekly summary | On Monday from 06:00 in your organization's time zone, once that day has begun in UTC, the week before, Monday to Sunday in UTC days, against the one before it, the services that moved most, and the month's forecast |
| First figures | A connection's first billing data has been read, once for each connection, so whoever set it up knows Home has its figures |
| Connection failing | A connection or AI gateway has failed for an hour, with why, and that the figures it read before then stay; raised again only if it fails again after reading once more |
| Unit cost over target | A month's cost per unit passes its unit cost's target, read in the target's currency through the last day both its spend and its metric reach |
| Anomaly | A service, usage type, team, owner or saved view spends outside its normal range on one of the last few days, as Insights finds it; received only where chosen, and by whoever watches it |
Each alert is raised once: a budget's warning, passed and forecast alerts once a month, a unit cost over its target once a month, each cost spike and each anomaly once, and a failing connection once for each time it fails, an hour after it began, so a passing outage alerts no one. Changing a budget's limit, or a unit cost's target, lets it alert again against the new one. In the first five days of a month, the month before is checked too, as late charges land.
Cost spikes
For each provider and service, the last complete day is compared with the average of the seven days before it. It is a spike when it is above that average by the project's spike threshold, 40 percent by default, and the rise is also at least 1 percent of the project's average daily spend, so a service moving by cents is never an alert. Only recent days are considered, so connecting a provider with months of history alerts no one.
The alert names what drove the rise, measured against the same seven days' average: the value that rose most on up to three dimensions, the team, feature, customer and user first, then custom dimensions, a cluster's workloads, namespaces and clusters, the account, the region and the model, such as Largest rises: team payments, up $200.00; account Production, up $180.00. It then says what moved below the service, as What moved does: what the move is called, the usage type that moved most, and within it the resource that moved most where the bill names one, such as What moved: new resources. Largest: BoxUsage:g6e.12xlarge, up $244.28; within it i-0c8e4b1f9a2d7e635, up $251.83.
Insights lists cost spikes with their evidence, the day, what it cost and the average it is compared with, and the 100 most recent alerts raised for the project.
Anomaly alerts
An anomaly alert is raised once for each anomaly Insights finds on one of the last three days, in the project's display currency, such as Team search on AWS spent $160.00 on 2026-09-10, above its normal range: $100.00 was expected from the same weekday of the four weeks before. It names what drove it against the average of that weekday over the four weeks before, and what moved within it, both held to the team's, owner's or saved view's own spend where it is of one, then what changed around it, read from each cloud's own records before the alert is sent, such as What changed: RunInstances on i-0c8e4b1f9a2d7e635 by arn:aws:sts::111122223333:assumed-role/DataPlatform/training-pipeline, 2026-11-28 09:12 UTC., or which accounts' changes could not be read. A usage type's is raised only where its service stayed in range, as the service's names what moved below it.
Every team, feature and saved view is watched, so anomalies reach only where they are chosen:
- People who watch it: everyone who watches the saved view, team, feature or other owner, and every person limited to that owner, who reads that owner's figures alone, with a link to Explore held to it.
- Recipients and webhooks that choose Anomaly. A new recipient or webhook receives every kind but anomalies until chosen otherwise.
- A saved view's webhook: one of the project's webhooks a saved view sends its anomalies to, whatever kinds the webhook sends, chosen in Explore under Views, Rename, describe or route anomalies by owners, admins and billing members, as it may page whoever is on call.
Slack, which has no choice of kinds, receives every alert but anomalies.
Who is alerted
In Settings, Notifications, owners, admins and billing members choose:
- Recipients: email addresses, each subscribed to the kinds of alert it wants. Whoever creates a project is its first recipient, of every kind but anomalies, so its alerts reach someone from the start; they can choose others in their place.
- The cost spike threshold, from 10 to 1,000 percent.
- Slack: an incoming webhook for one channel, which receives every alert but anomalies. CostReveal posts a test message before saving it, keeps it encrypted, and only ever accepts an address on
hooks.slack.com. A message Slack does not accept is retried for several hours. Removing Slack stops every message still waiting. - Webhooks: up to 10, each sending the kinds of alert it is set up for to Microsoft Teams, PagerDuty or your own systems. See Webhooks.
Webhooks
Under Settings, Notifications, Webhooks, choose Add webhook, name it, choose how its alerts are sent and which kinds it receives:
| Sent as | Sent to | What arrives |
|---|---|---|
| Signed JSON | An https address your system receives alerts at, such as Jira or ServiceNow automation, Zapier or your own service | The alert as JSON, signed with a secret shown once |
| Microsoft Teams | The address of a Teams Workflow started by When a Teams webhook request is received, set to post to a channel | A card with the alert, its project and a link to it |
| PagerDuty | The integration key of a service's Events API v2 integration | A triggered event, its severity by the kind of alert, one incident for each alert however often it is retried |
A PagerDuty webhook starts with the alerts that ask someone to act now: a budget passed or forecast past its limit, a cost spike, a connection failing and a unit cost over target. CostReveal sends a test alert before it saves a webhook, so a mistyped address or key is caught at once, and keeps each address, key and secret encrypted. It sends only over https, to public addresses, never following a redirect, so a webhook cannot reach a private network. An alert a receiver does not accept with a 2xx answer is retried with backoff for about nine hours, each try with the same body and delivery ID. Recent deliveries on a webhook lists its latest alerts and what its receiver answered. Removing a webhook stops every alert still waiting. Adding and removing one is recorded in Audit logs.
Signed JSON
Each alert is a POST with content-type: application/json and three headers:
costreveal-event:alert.and the kind of alert, such asalert.budget_critical, ortestfor the test alert.costreveal-delivery: the delivery's ID, the same on every retry, so act on each once.costreveal-signature:t=the Unix time it was sent, thenv1=the hex HMAC-SHA256 of the time, a dot and the body, made with the webhook's secret.
{
"id": "0b6f2e1c-5a8d-4c3e-9f71-2d4b6a8c0e13",
"type": "alert",
"project": { "id": "8f3c...", "name": "Production" },
"title": "Budget passed: Payments at 104 percent",
"url": "https://app.costreveal.com/budgets",
"alert": {
"id": "c1d2...",
"projectId": "8f3c...",
"kind": "budget_critical",
"subject": "Payments",
"period": "2026-11",
"day": null,
"figures": { "amount": "10400", "reference": "10000", "currency": "USD" },
"summary": "Payments has spent $10,400.00 of its $10,000.00 budget for November 2026, 104 percent, through 2026-11-16.",
"movements": null,
"createdAt": "2026-11-17T09:00:00.000Z"
}
}
A cost spike's alert, and an anomaly's of a service or a usage type, also carries movements: what moved below its service, as What moved in Insights shows it, kept as the alert stated it so a later restatement of the bill never changes it; it is null for every other alert. An anomaly's kind is anomaly, its day the day found, and its figures the day's spend against what was expected; it also carries changes, what changed around it as What changed in Insights matches it, and changes is null for every other alert.
Check the signature against the body exactly as received, and refuse one more than five minutes old:
import { createHmac, timingSafeEqual } from 'node:crypto';
function verified(body, header, secret) {
const parts = Object.fromEntries(header.split(',').map((part) => part.split('=')));
const expected = createHmac('sha256', secret).update(`${parts.t}.${body}`).digest('hex');
const signature = Buffer.from(parts.v1 ?? '');
const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) <= 300;
return (
fresh &&
signature.length === expected.length &&
timingSafeEqual(Buffer.from(expected), signature)
);
}
Who can change budgets
Everyone who can see a project's costs can see its budgets and alerts. Owners, admins and billing members create, change and delete budgets and choose who is alerted. Every change is recorded in Audit logs.