Cloud Cost Alerts: How to Set Budget and Slack Alerts

How to set cloud cost alerts on AWS, Azure and GCP: pick the dollar amount that triggers a bill alert, add forecast alerts and route each alert to Slack.

Xplorr team

The people who build Xplorr

Updated 8 min read
Cloud Cost Alerts: How to Set Budget and Slack Alerts
In this post
  1. Can you choose the dollar amount that triggers a bill alert?
  2. How do you pick the budget amount and thresholds?
  3. What does a forecast alert catch that a threshold alert misses?
  4. How do you set up budget alerts on AWS, Azure and GCP?
  5. How do you send cloud cost alerts to Slack?
  6. What about real-time anomaly alerts in Slack?
  7. A setup checklist

A working set of cloud cost alerts has four parts: a budget amount set a little above what you expect to spend, thresholds at fixed dollar points under and over it, a forecast alert that fires when the month is on pace to go over, and a Slack channel with a named owner where all of it lands. Add one anomaly rule on top, because a budget only sees the monthly total and misses a spike that stays under it.

This guide is the setup how-to. For what counts as an anomaly and how baselines work, read what is a cloud cost anomaly. For the habits that cause a bill to jump in the first place, read 5 signs your cloud bill is about to spike. Provider details below are from the AWS, Microsoft and Google documentation, checked November 2026.

Infographic titled One $5,000 budget, five alerts. A table lists each alert, the dollar amount where it fires, when it fires for an account that normally spends $4,300 a month and who gets it: 50% actual at $2,500 around day 17, a status post in the team cost channel; 80% actual at $4,000 around day 28, the account owner checks the top services; 100% actual at $5,000, the engineering manager decides; 100% forecast, fires as soon as the month is on pace to pass $5,000, for example on day 10 at $2,000 spent; anomaly rule, any day more than 50% above its 7 day baseline, the on-call engineer. A rule box says to set the budget 10 to 20% above expected spend and keep the forecast alert on.
One budget with five alerts: the dollar point where each fires, when it fires, and who should get it.

Can you choose the dollar amount that triggers a bill alert?

Yes, on all three clouds, though each one asks for it differently.

  • AWS Budgets lets you set each alert as a percentage of the budget or as a fixed amount. In the API this is the notification ThresholdType: PERCENTAGE or ABSOLUTE_VALUE. A budget can carry up to ten notifications, each with one SNS topic and up to ten email addresses.
  • Azure Cost Management budgets take thresholds as a percentage of the budget amount, from 0.01% to 1000%, so the dollar point is the amount times the percentage. A budget takes one to five thresholds and up to five email addresses (Microsoft Learn).
  • Google Cloud budgets store thresholds as percentages too, but the console lets you type an amount and works out the percentage for you. The defaults are 50%, 90% and 100% of actual spend (Google Cloud docs).

Whichever cloud you use, decide the dollar points first and convert them afterwards, and put the dollars in the alert text: “$4,000 of $5,000 spent” tells the person who gets it more than “80%”.

How do you pick the budget amount and thresholds?

Start from what you expect to spend, not from the most you could afford. Xplorr’s own budget alerts guide suggests setting the amount 10 to 20% above expected spend. A budget set at five times your normal bill never fires, and one set below it fires every month until people mute it.

Then pick thresholds that each ask a different question. For a production account that normally runs about $4,300 a month, a $5,000 budget gives you:

Threshold Fires at At $4,300 a month (about $143 a day) The question it asks
50% actual $2,500 Around day 17 Are we on track?
80% actual $4,000 Around day 28 What grew, and is it expected?
100% actual $5,000 Only on an overrun Who approves the extra spend?
100% forecast Projected $5,000 As soon as the pace says so Can we fix it before month end?

Two rules keep this from turning into noise. First, add service budgets only for your top two or three cost drivers, not for every service. Second, review the amounts every month, because a budget that was right a quarter ago is probably wrong for what you run today.

What does a forecast alert catch that a threshold alert misses?

An actual alert tells you that you already spent the money. A forecast alert tells you the month is on pace to go over while there is still time to act.

Take the $5,000 budget above. If something new starts running and the account spends $2,000 in the first 10 days, a straight line projects $6,000 for the month. The forecast alert fires on day 10, while the 80% actual alert waits until spend reaches $4,000, around day 20 at that pace, so the forecast buys about ten days.

Each provider handles forecasts a little differently:

  • AWS needs about five weeks of usage data before a forecast alert can fire, so a new account gets actual alerts only at first. Actual alerts are sent once per budget period. Forecast alerts can repeat if the forecast drops below the threshold and crosses it again.
  • Azure evaluates budgets every 24 hours against cost data that is typically 8 to 24 hours old, and sends the email within about an hour of the evaluation.
  • Google Cloud lets you set each threshold rule on actual or forecasted spend, except on budgets with a custom time range.

How do you set up budget alerts on AWS, Azure and GCP?

Put budgets in Terraform so the amounts are reviewed like any other change. These three examples set the same $5,000 budget, with an alert at $4,000 and a forecast alert at 100%.

On AWS, the first notification uses a fixed dollar amount, the second a forecast percentage. Both publish to an SNS topic, which is also the route to Slack.

resource "aws_budgets_budget" "prod_monthly" {
  name         = "prod-monthly"
  budget_type  = "COST"
  limit_amount = "5000"
  limit_unit   = "USD"
  time_unit    = "MONTHLY"

  notification {
    comparison_operator       = "GREATER_THAN"
    threshold                 = 4000
    threshold_type            = "ABSOLUTE_VALUE"
    notification_type         = "ACTUAL"
    subscriber_sns_topic_arns = [aws_sns_topic.cost_alerts.arn]
  }

  notification {
    comparison_operator       = "GREATER_THAN"
    threshold                 = 100
    threshold_type            = "PERCENTAGE"
    notification_type         = "FORECASTED"
    subscriber_sns_topic_arns = [aws_sns_topic.cost_alerts.arn]
  }
}

On Azure, thresholds are percentages, so $4,000 on a $5,000 budget is 80. The action group is what lets the alert reach anything other than email, and Microsoft supports action groups only on subscription and resource group budgets.

resource "azurerm_consumption_budget_subscription" "prod_monthly" {
  name            = "prod-monthly"
  subscription_id = data.azurerm_subscription.current.id
  amount          = 5000
  time_grain      = "Monthly"

  time_period {
    start_date = "2026-12-01T00:00:00Z"
  }

  notification {
    enabled        = true
    threshold      = 80
    operator       = "GreaterThan"
    threshold_type = "Actual"
    contact_groups = [azurerm_monitor_action_group.cost_alerts.id]
  }

  notification {
    enabled        = true
    threshold      = 100
    operator       = "GreaterThan"
    threshold_type = "Forecasted"
    contact_groups = [azurerm_monitor_action_group.cost_alerts.id]
  }
}

On Google Cloud, budgets live on the billing account. Connecting a Pub/Sub topic is what makes alerts usable outside email.

resource "google_billing_budget" "prod_monthly" {
  billing_account = var.billing_account_id
  display_name    = "prod-monthly"

  amount {
    specified_amount {
      currency_code = "USD"
      units         = "5000"
    }
  }

  threshold_rules {
    threshold_percent = 0.8
  }
  threshold_rules {
    threshold_percent = 1.0
    spend_basis       = "FORECASTED_SPEND"
  }

  all_updates_rule {
    pubsub_topic = google_pubsub_topic.cost_alerts.id
  }
}

None of these budgets stop spending. Each one sends a message, so what happens next depends on where that message lands.

How do you send cloud cost alerts to Slack?

Every provider can reach Slack, through a different bridge:

  • AWS: point the budget at an SNS topic, then map that topic to a Slack channel in Amazon Q Developer in chat applications, the service that used to be called AWS Chatbot. The SNS topic must be in the same account as the budget (cross-account SNS is not supported), needs a policy that lets AWS Budgets publish to it, and needs extra KMS permissions if it is encrypted.
  • Azure: attach an action group to the budget. The action group can call a webhook or an Azure Function, and that is what posts to Slack.
  • Google Cloud: the budget publishes to Pub/Sub several times a day with its current status, and a small function subscribed to the topic posts to Slack when a threshold is crossed.

Setups that fail usually fail on routing, so decide who gets each alert before you wire it up:

Alert Where it goes Who acts
50% and 80% actual Team cost channel Account owner, during working hours
100% forecast Team cost channel, owner tagged Account owner, the same day
100% actual Cost channel plus the engineering manager Manager approves or cuts
Anomaly Team channel plus on-call On-call engineer, the same day

One channel per team beats one company-wide channel, where everyone assumes someone else has it.

In Xplorr, budgets and anomaly alerts share one Slack setup: create a Slack incoming webhook, paste it under Settings, Slack Notifications, and press “Send test message”. Budget alerts, anomaly alerts and alert rule triggers then post to that channel for every connected cloud. Budgets have no per budget channel picker, but an alert rule can carry its own webhook, and an admin chooses who gets the emails under Settings, Notification Routing. The details are in Xplorr’s notifications guide.

What about real-time anomaly alerts in Slack?

A budget compares the month’s total with one number. If a new service starts burning $150 a day in an account that is otherwise under budget, no budget alert fires until the total catches up. Anomaly alerts close that gap.

No cost alert is truly real time, because billing data itself arrives late. AWS Cost Anomaly Detection runs about three times a day on Cost Explorer data that can lag up to 24 hours, and needs 10 days of history before it watches a new service.

Xplorr’s anomaly detection uses a fixed rule you can read in the docs. It compares each account, service and region with the average of up to 7 days before it and flags a day more than 50% above that baseline, with a minimum of a $1 day cost or a $0.50 increase so tiny services stay quiet. It runs every 6 hours and posts to Slack and email about 10 minutes after each run, with the service, region, account, cost against baseline, percentage and severity in the message. If AWS is most of your bill, AWS cost anomaly detection compares this with the free AWS service.

A setup checklist

  1. One budget per account, set 10 to 20% above expected monthly spend.
  2. Thresholds at 50% and 80% actual, 100% actual, and a 100% forecast alert.
  3. Service budgets for your top two or three cost drivers only.
  4. Every alert routed to a team channel with a named owner, not a shared inbox.
  5. Anomaly detection on every account and service, so spikes under budget still reach someone.
  6. A monthly review of every budget amount.

To get budget, forecast and anomaly alerts in Slack without maintaining the Terraform yourself, create a free Xplorr account: one cloud account, no credit card.

ShareLinkedInX

Written by

Xplorr team

The people who build Xplorr

Written together by the engineers who build Xplorr: the AWS, Azure, GCP and Kubernetes collectors, the console, and the alerting behind them.

About Xplorr

Related posts

All articles
5 Signs Your Cloud Bill Is About to Spike
FinOps practice

5 Signs Your Cloud Bill Is About to Spike

Forgotten dev environments, autoscaling without limits, surprise data transfer fees, abandoned snapshots.

Harmanjyot Kaur

5 min read

FinOps Best Practices for Engineering Teams
FinOps practice

FinOps Best Practices for Engineering Teams

Cost ownership, tagging that survives contact with engineers, dashboards people open, and monthly reviews that produce action items.

Harmanjyot Kaur

9 min read

Free plan, no credit card

See your AWS, Azure and GCP spend in one place

Connect a cloud account and find what is driving the bill. Start on the Free plan for 1 cloud account, no credit card required.