Skip to main content
Version: Dev

Budget Alerts and Notifications

Budget alerts notify operators when spend crosses a percentage of a budget limit. Use them to warn before a blocking budget rejects traffic or to monitor a warn-only budget.

Prerequisites​

Before starting, prepare the following:

  • At least one existing budget.
  • A webhook URL or Slack incoming webhook URL for the notification destination.

Sign in to AISIX Enterprise or AISIX Cloud with permission to view, create, and test notification channels in the organization.

Configure a Notification Channel​

Notification channels are organization-level destinations. Every enabled channel receives every alert raised in the organization.

Choose one of these channel types:

  • Webhook sends each alert as a JSON POST. Use it for incident tooling, chat platforms, or another HTTP receiver.
  • Slack sends a readable message through a Slack incoming webhook.
  1. In the organization navigation, open Notifications, then select New channel.
  2. Enter a Name, select the channel Type, and enter its URL.
Webhook notification channel named Budget alerts with its destination URL
  1. Keep Enabled selected, then select Create channel.
  2. Select Test on the new channel. Confirm that Test send succeeded appears and that the destination received the message.
Notification channel Test action and successful webhook result

The channel URL is write-only. Dashboard and API reads return a masked value. Leave URL empty in the Dashboard or omit url from an API update to retain the stored value.

To stop deliveries temporarily, select Disable. Deleting a channel prevents future deliveries but retains its delivery history for 90 days.

For custom webhook bodies, request headers, payload fields, and channel limits, see Notification Channel Reference.

Allow Private Network Destinations​

By default, an AISIX Enterprise control plane can deliver to private, loopback, and link-local destinations. This lets an intranet webhook receiver or Slack proxy work without additional configuration.

To refuse private destinations, enable SSRF protection with AISIX_CLOUD_SSRF_PROTECTION_ENABLED=true on the control plane API. The corresponding Helm value is api.outbound.ssrfProtection.enabled. You can still save a private URL, but tests and alert deliveries fail unless the host is allowed. See Private Network Access.

Configure Alert Thresholds​

Alert thresholds are percentages of a budget limit:

  1. Open Budgets. Select New budget, or select Edit on an existing budget.
  2. In Alert thresholds (%), enter one or more whole-number percentages separated by commas. For example, use 80, 100 for an early warning and a limit-reached alert.
Budget form with alert thresholds set to 80 and 100 percent
  1. Select Create budget or Save changes.

You can configure up to 20 unique thresholds from 1 through 200. Leaving the field empty uses the default threshold of 80.

Each threshold fires once per budget period. Changing the budget time zone preserves alerts that already fired. Each threshold can fire again after the next reset in the new zone. In a webhook payload, period_start uses the budget time zone and triggered_at uses UTC. For an each-member-in-a-team budget, each member triggers alerts independently.

The control plane checks spend continuously and normally raises an alert within about 30 seconds of crossing a threshold. A blocking budget usually prevents thresholds above 100% from being reached, although a request or concurrent requests admitted below the limit can complete above it.

Verify Notifications​

Verify the complete path with a non-production budget:

  1. Generate enough usage to cross a configured threshold.
  2. Confirm that every enabled channel receives the alert.
  3. Open Notifications and find the event under Delivery log.
  4. Confirm that the entry shows Delivered. For a failed delivery, inspect its error, destination response, and payload.
Notification delivery log with delivered and failed budget threshold events

The log uses these statuses:

StatusMeaning
PendingThe delivery is waiting for its first attempt or a retry.
DeliveredThe destination accepted the notification.
FailedAISIX exhausted the retry schedule or encountered a permanent error.

A test send verifies a channel immediately but does not create a delivery-log entry. Use a real threshold alert to verify budget evaluation and delivery together.

See Delivery Behavior for retry timing, retained response details, masking, and the 90-day history window.

Next Steps​

Continue with Logging and Auditing to investigate the requests and control-plane changes behind budget behavior. To interpret the spend records that drive budget evaluation, see Usage Reporting.