# Create your first alert

Pick a measure to watch, draw a line, and choose where the alert is sent when it's crossed. Owners and Admins can create alerts.

An alert puts a line your team agreed on onto a project measure and tells you when it's crossed. It isn't for detecting outages. It watches lines that teams set but nobody checks, such as "daily cost stays under $50" or "AI pull requests don't pile up without review". In this article you set up a notification channel, pick a measure and a line, and save your first alert.

## What you need first

* The Owner or Admin role. Only Owners and Admins can create, edit, pause, or delete alerts. Members and Viewers can read the list and the details.
* Somewhere to send alerts. Email to "Workspace owners" exists from the start. To post to Slack, connect Slack first.

## Set up a notification channel

1. In workspace settings, open Connections and click Connect Slack. Choose a Slack workspace and install the app.
2. In workspace settings, open Notification channels. Under Add a channel, set Type to Slack channel or Email.
3. For Slack, choose a channel and click Send a test message first to confirm it arrives. For email, enter addresses and click Add channel. You can enter several, separated by commas.
4. Each email address gets a confirmation email. Alerts start arriving after it's confirmed.

Every place alerts can post to, with how many alerts use it and when it last delivered.

*Notification channels (sample data)*

## Pick a measure

1. Open Alerts in the project and click New alert. While the project has no alerts, you can also start from one of the common alerts offered on the page.
2. Click Measure to see 15 measures with their units, grouped under Cost, Pull requests and CI, Sessions, and Members. Pick one.
3. Under Aggregation, pick a period. Each measure has its own set; Cost, for example, offers sum per day, sum per week, and this month.
4. To narrow what's counted, click + Add filter. Cost and Sessions measures can be filtered by agent, model, member, and repository.

Every measure watches this project only, and uses the same definition as the value with the same name on dashboards and Home.

## Draw the line

1. Under Conditions, choose whether to trigger when the value is above or below the line.
2. Enter the Alert line. To hear earlier, add a Warning line too. The Warning line must sit before the Alert line.
3. Check the Live preview on the right, which plots the past 14 days against your lines. The line under its heading says how many times the alert would have fired. If that's too often, adjust before saving.
4. Choose When there is no data. The default, Can't evaluate, never treats missing data as OK. Only Cost and count measures can treat "nothing to count" as 0.
5. Choose Renotify. The default notifies only when the state changes.

The Live preview count is a "what if this line had been in place" estimate and won't match the real number of notifications. If the measure is Budget used, set a monthly budget in project settings first.

Choose the measure, conditions, and channels on the left; the Live preview on the right overlays the past 14 days with your lines.

*New alert (sample data)*

## Choose channels and save

1. Under Notifications, give the alert a Name of 1 to 100 characters.
2. Under Send to, check the channels to notify. The defaults come from Alert notifications in project settings.
3. Click Save alert. You land on the alert's detail page.

Saved alerts are evaluated every 5 or 30 minutes. A state change is confirmed over two evaluations before anyone is notified, so a blip that appears and quickly clears isn't sent. Alerts also appear under the bell in the app, for all Owners and Admins and for members whose address is in an email channel the alert uses.

After it fires: [Trace an alert to its cause](/en/docs/usage/alert-to-cause)

## FAQ

**What if I get too many alerts?**

Before saving, use the Live preview to check the past 14 days against your lines and adjust the conditions. After saving, Pause on the alert's detail page stops it while keeping the line.

**Can alerts go anywhere besides Slack and email?**

No. Alerts go to the app, email, and Slack. There's no generic webhook channel.

**Do Slack messages include content or prompts?**

No. A message contains only the alert name, the kind of event, the measure, the value and line at that moment, the project name, the time, and a link to the alert's detail page.

**Will imported history trigger alerts?**

No. Evaluation skips events imported from GitHub's history and events from before a repository started syncing. Dashboards still count them.

## Read next

- [When an alert says “Can’t evaluate”](/en/docs/usage/insufficient-data): Tell missing data apart from Not measured and Not linked.
- [Read the quality dashboard](/en/docs/usage/quality): See current first-run CI pass and rework before you draw a line.
- [Safeguards & alerts](/en/product/monitoring): Set the lines you don't want to cross and hear when one is crossed.

Slack is a trademark and service mark of Slack Technologies, Inc., registered in the U.S. and in other countries.
