Skip to content

Alert rules

An alert rule describes what CloudQuell should watch, how often, and where to send a notification when the condition is met. You manage rules on the Alerting page (in the sidebar under Insights).

Each rule captures:

  • Type — trend, anomaly, budget, or expiry (commitment expiry).
  • Target — what the rule evaluates: your entire organization (combined spend across every connected provider) or a single integration.
  • Cadence and thresholds — how often the condition is evaluated and the values that trip it. Money thresholds are interpreted in your organization’s display currency; spend is converted into it before the comparison.
  • Scope — the services, accounts, or tag key/value the rule watches within its target (leave empty to watch everything).
  • Recipients — who receives a firing: any number of your notification channels, of any type, plus up to five email addresses added directly to the rule.

On the Alerting page, select + New Alert Rule and work through the form:

  1. Rule name — how the rule appears in the list and in notifications.
  2. Applies to — leave it on Entire organization to evaluate combined spend across every connected provider, or pick one integration to watch only that provider’s data. The scope pickers below (services, accounts, tag keys) follow whichever target you choose, and switching the target clears any scope selections you’d already made.
  3. Alert type — what condition is checked:
    • Trend Spike — fires when total spend for the rule’s scope rises by at least your percentage versus the previous period (day-over-day, week-over-week, or month-over-month).
    • Anomaly Scan — compares each service to its own baseline (the average of its four prior windows) and fires per service that rises by at least your percentage and meets a minimum dollar impact, so small-dollar noise doesn’t page you.
    • Spend Threshold — fires when total spend for the analysis period reaches a fixed amount. This is a standalone rule; it is not linked to budgets on the Budgets page.
    • Commitment Expiry — fires when a commitment on the Commitments view ends within your notice window (1–365 days, the last day included): an AWS Reserved Instance or Savings Plan, or an Azure reservation or savings plan when its end date is available (optional commitments roles). Google Cloud committed use discounts are never included: Google’s billing export has no end date for them. An organization-wide rule checks every connected cloud; a rule pinned to an integration checks that integration’s commitments. Each commitment is notified once: the first run reports every commitment already inside the window, and after that only commitments that newly enter it. The notification lists each one with its end date and ID. Service, account and tag filters don’t apply to expiry rules.
  4. Check frequency — how often the rule is evaluated: daily, weekly, or monthly. See When rules are evaluated.
  5. Analysis period — the comparison window for trend and anomaly rules (Day-over-Day, Week-over-Week, Month-over-Month), or the spend window for threshold rules (Last Full Day, Last 7 Days, Last 30 Days, Current Month to Date). On a monthly rule, Current Month to Date becomes Last Full Month: the rule checks the whole calendar month that just ended. Expiry rules don’t have one — only the days-notice value matters.
  6. Scope (optional) — narrow the rule to specific services, accounts, or a tag key/value. Empty means everything under the rule’s target, and the form summarizes exactly what you’re monitoring as you pick.
  7. Recipients — select Choose… and pick who gets the alert. Tick any of your saved channels, in any mix of types (several Slack channels plus an email list, for example), and add up to five email addresses directly. A rule needs at least one recipient, and a firing goes to every one of them. There’s no need to wait for a channel: any member can finish the rule with an email address. Admins can also add a Slack, Teams, or email channel from inside the picker with + New channel. It’s selected as soon as it’s saved, and the rest of the form stays as you left it.

Save the rule and it appears in the list immediately, active by default.

Via MCP, an agent does the same with create_alert_rule, and edits, pauses or deletes rules with update_alert_rule, set_alert_rule_active and delete_alert_rule. Agent changes are off until an Admin turns them on; see MCP writes.

Rules run on a fixed schedule by frequency — daily rules every day at 08:00 UTC, weekly rules Mondays at 08:00 UTC, and monthly rules on the 3rd at 08:00 UTC.

Each run counts only days the provider has finished reporting: through the day before yesterday for AWS, Azure, and Google Cloud, and through yesterday for Snowflake, OpenAI, and Anthropic. A rule for the entire organization waits for the slowest provider it has recent data from. That’s why a daily rule over one day flags an AWS spike two days after it happens at best — the trade for never alerting on a half-reported day. Current Month to Date follows the same rule, so on the 1st and 2nd it still reports the month that just ended.

When a rule’s condition becomes true, the firing is delivered to its recipients and recorded in the firing history. While the condition stays true, the rule doesn’t repeat itself:

  • A Current Month to Date threshold notifies once per month.
  • A rule that looks at a fresh window each run — a daily rule over one day, a weekly rule over 7 days, a monthly rule over 30 days — notifies for every period that breaches.
  • A rule that looks further back than it runs — a daily rule over the last 7 days, say — notifies again only when the condition gets a full threshold step worse: another threshold-percent of increase, another threshold amount of spend, or, for an anomaly scan, a service’s increase doubling.

Editing a rule starts it fresh.

Each rule card on the Alerting page carries its controls:

  • Pause / Resume — a paused rule is skipped by evaluation entirely; resume it to pick the schedule back up. Rules also pause automatically when they have nowhere left to deliver: when every email recipient has unsubscribed and no Slack or Teams channel remains, the card shows “Paused — recipients unsubscribed”; when an Admin deletes a channel and the rule is left with nowhere to deliver (no other channel, and no email address that’s still subscribed), it shows “Paused — channel deleted” and resumes automatically once you save it with a recipient.
  • Stop emailing just me — the bell icon unsubscribes your own address from that one rule without affecting other recipients (any role can do this). Click it again to re-subscribe. The same per-rule toggles also live under Notification preferences in the account menu. Recipients outside your organization can do the same via the unsubscribe link in the email itself.
  • Edit — change any part of the rule, including its target, scope, and recipients.
  • Delete — removes the rule permanently; its past firings remain in the history feed.

You can list every configured rule to see its type, cadence, thresholds, watched services and accounts, and recipients, or pull a single rule by its id to review it in detail. An empty list is normal — it simply means no rules are configured yet.

An agent connected through the MCP server reads these with list_alert_rules and get_alert_rule, so you can ask “what alert rules do we have and what do they watch?” in plain language.

Separately from the rule definitions, CloudQuell keeps a history of every alert that has actually fired — each notification a rule sent, not every run on which its condition held. This one feed combines cost-rule firings and budget-threshold crossings, and for each entry records:

  • The subject and alert type.
  • When it fired.
  • The trigger value versus its baseline.
  • Delivery status — whether the notification was delivered, failed, or suppressed.

You can narrow the history by date or by delivery status to confirm alerts are reaching your channels. Via MCP this is list_triggered_alerts.