Thresholds & alerts
A threshold defines the condition that triggers an alert. Lighthouse supports absolute thresholds, percent-change thresholds, and standard-deviation thresholds, each with flexible comparison configuration.
Threshold types
Absolute
Compares the current metric value to a literal number or range. Use this when you know the exact boundary: for example, alert when active sessions drops below 500, or when error count exceeds 1000.
Conditions available: greater than, less than, equals, not equals, in set, not in set, and range conditions.
Percent change
Compares the current metric value to a historical baseline and fires when the relative change exceeds a threshold: for example, alert when revenue drops by more than 30% compared to the average of the same day over the last 4 weeks.
You choose the direction: increased by (catches spikes) or decreased by (catches drops), or both.
The historical baseline is controlled by the trend comparison settings described below.
Standard deviation
Compares the current metric value to the mean of the historical window and fires when the value is more than N standard deviations away from that mean. Use this when you don't know an exact threshold but want to catch statistically unusual values.
For example: alert when today's revenue is more than 2.5 standard deviations below the rolling 28-day average.
Current metric comparison
Compares the current metric value directly to a prior period value: for example, current hour vs the same hour yesterday. Similar to percent change, but the comparison is always to a single prior value rather than a computed baseline.
Trend comparison
Percent change and standard deviation thresholds require a historical baseline. The trend comparison settings control how Lighthouse computes that baseline.
- Lookback period
- DescriptionHow far back to look when building the baseline.
- ExampleLast 28 days
- Aggregation
- DescriptionHow to summarize the historical window into a single baseline value: AVG, MIN, MAX, or MEDIAN.
- ExampleAVG of last 28 days
- Day bucketing
- DescriptionBreak the lookback window into sub-periods before aggregating. For example, 'by day' means one value per calendar day, then averaged across those days.
- ExampleAVG of daily totals over last 28 days
- Same relative day
- DescriptionWhen enabled, only compare to the same weekday in the lookback window: Monday compares to the 4 previous Mondays, not all 28 days. Reduces noise from weekly seasonality.
- ExampleAVG of past 4 Mondays
Severity levels
Every alert has a severity from S0 to S5. S0 is the most severe; S5 is informational. New metrics default to S2. In the Thresholds step, the Severity field has two modes:
| Mode | How severity is set |
|---|---|
| Fixed | Every matching alert gets the severity you pick. |
| Scale | Severity follows how far the breach goes. Pick the number to scale by (the metric value, or a threshold rule's value or change in %), then set where it is least severe and where it is most severe. The range is split into equal severity bands; a value past either end keeps that end's severity. |
| Level | Typical use |
|---|---|
| S0 | Production incidents: payment failure, complete service outage |
| S1 | Severe business impact: revenue drop, major funnel collapse |
| S2 | Significant change: default severity. Unusual but not necessarily urgent. |
| S3 | Notable but expected variance: worth knowing, not worth waking anyone up |
| S4 | Low-priority trend monitoring |
| S5 | Informational: logged for context, no action expected |
Severity shows in alert messages as S1, S2, and so on, and it drives who gets pinged: you can mention people when an alert reaches a chosen severity. An alert that escalates to a higher severity can notify again, even when repeats are off.
When an alert opens
The Open alert setting in the Thresholds step decides when a match turns into an alert:
On the first match (default)
The alert opens on the first check that breaches the threshold. This is the default and is appropriate for most metrics.
After repeated matches
The alert opens only after N checks in a row all breach the threshold. Use this to reduce false positives on noisy metrics: a single bad data point won't trigger an alert, but a sustained anomaly will. The form shows roughly how long that takes on your schedule.
For example, with 3 matches in a row on an hourly schedule, you'll only get alerted after 3 consecutive hours of breach.
Resolve a segment when it disappears
When on, a segment that stops appearing in the results is no longer matched, so its alert recovers.
Repeat notifications
The Frequency setting in the Notifications step controls what happens while a segment stays in breach:
| Option | Behavior |
|---|---|
| Once per trigger | One notification when the alert opens, then silence while the segment stays in breach. A new notification goes out when the breach clears and occurs again, or when the alert escalates to a higher severity. |
| Every check while it matches | A notification on every scheduled check where the threshold is breached. |
With Reply in the alert's thread on, repeats and higher-severity alerts reply in the Slack thread of the message that opened the alert, and a higher severity also shows in the channel. With it off, each one is a new message. Email is never threaded. Each action sets its own frequency.
Recovery
An alert recovers once the value is back within the conditions, or the segment left the results. The On recovery setting decides what happens then:
| Option | Behavior |
|---|---|
| Do nothing | The alert message stays as it was. |
| Update the alert message | The original message is marked recovered, with how long the alert lasted. |
| Update it and reply in the thread | Also posts a recovery reply in the alert's thread, and sends a recovered email to the email recipients. |
| Update it and reply in the thread and the channel | Same, with the reply also shown in the channel. |
An alert someone resolved by hand is left as it is, and one that recovers on the very next check gets no reply.
Mentions
| Setting | What it does |
|---|---|
| Mention the owner | Starts each alert in the channel with a mention of the metric's owner, so they get notified. An owner who is not in Slack is left out. |
| Mention ... when severity is ... or higher | Mentions up to 3 people or groups when a channel alert reaches the chosen severity or a more severe one: when it first fires and when it escalates into it, not when it repeats. |
What an alert includes
Besides the message text you write (see message templates), an alert can carry:
| Part | Detail |
|---|---|
| Alert context | With Show alert context on, each segment gets lines in plain words: the rule that matched and its numbers, how long it has been alerting, the previous check's value and the change, the time the data is up to, and when the segment last alerted. Email is not changed. |
| Chart | A single-segment Slack alert attaches a chart of the segment's last 30 days. |
| What to do | A short note shown under every alert, in Slack and by email, so whoever gets it knows the first step. |
| Most severe first | When several segments alert in one message, the most severe segments are listed first. Very long Slack alerts are shortened, with More Info linking to the full details. |
Summaries and org notifications
Admins set these for the whole organization under Settings → Org notifications:
| Setting | What it sends |
|---|---|
| Open alerts digest | One message on the chosen days, at the chosen time, listing the alerts still open (most severe first) and the ones that opened and recovered since the last digest. Nothing is sent when no alert is open. |
| Weekly summary | One message a week comparing metric runs and failed runs with the week before, listing metrics that stopped and are still off, and counting metrics created, paused, and deleted. |
| A metric stops | One message when a metric stops running on its schedule, whatever the cause. |
| Every failed run | Each failed run that needs fixing, each query timeout, and each failed action. Temporary failures that pass on their own are not sent. |
| Data source connection problems | One message when a data source stops working. When off, the organization owner still gets it. |
| Plan limit / Alert delivery problems | Metrics paused because of the plan's live metric limit, and alerts that could not be delivered. The metric's owner is always told about delivery problems as well. |
The digest and weekly summary leave out metrics shown only to some people, because everyone in the channel can read them. Each member also chooses how they get their own notices.