Skip to content

Slack integration

Lighthouse sends alerts directly to Slack. Connect your workspace via OAuth, then choose a channel for each metric.

Connecting Slack

Open Destinations in the sidebar, click Add destination, and choose Slack. You'll be redirected to Slack's OAuth authorization screen.

  1. 1Authorize the Lighthouse app: Click Allow in Slack. This grants Lighthouse permission to post messages to channels you select.
  2. 2Return to Lighthouse: You'll be redirected back automatically. The Slack workspace appears in Destinations.
  3. 3Select a channel per metric: In a metric's Notifications step, choose the Slack workspace and a channel, a person to DM, or both. Need a new channel? Create it straight from the channel picker.
NoteEach org can connect one Slack workspace. Different metrics can post to different channels within that workspace. Email and HTTP endpoints are added the same way, under Destinations, and so is Microsoft Teams.

Alert message structure

Each Slack alert contains the following information:

FieldWhat it shows
Metric nameThe name you gave the metric in Lighthouse
SeverityThe alert's severity (S0 to S5), fixed or set by how far the breach goes
SegmentWhich segment combination triggered the alert, if segments are enabled
Current valueThe metric's value in this run (e.g. 1,840 transactions)
BaselineThe expected value from the trend comparison (e.g. 3,240 transactions)
ThresholdThe condition that was breached (e.g. > 30% drop)
ComparisonHow the baseline was calculated (e.g. same day last 4 weeks)
Triggered atThe timestamp of the metric run that fired the alert
Alert contextOptional plain-words lines: the rule that matched, how long it has been alerting, the previous value, and when the segment last alerted
What to doThe metric's runbook note, if it has one
ChartOn single-segment alerts, an image of the segment's last 30 days
NoteMetric name, severity, and segment are included in the default alert template. Baseline, Threshold, Comparison, and Triggered at only appear when you add the corresponding threshold filter variables to a custom notification template for that metric.

Example alert using customized threshold filter variables; the default template shows metric name, description, severity, segment, and value only.

#data-alerts

Transactions volume, last 3 hrs triggered

2 min ago
SeverityS1
SegmentUS · New Users
Value1,840 txns (↓ 43%)
Baseline3,240 txns
Threshold> 30% drop
CompareSame day last 4 wks

Alert buttons

Every alert message includes interactive buttons. Once a button is used, it's hidden on later messages for the same alert. Once an alert recovers, Mark as resolved and Acknowledge are no longer offered. Members and admins can use the buttons; Viewers can't.

ButtonWhat it does
Mark as HitConfirms the alert is real and worth investigating. Sets a 'hit' flag on this segment run. The metric continues monitoring; this doesn't resolve or clear the alert.
Mark as resolvedMarks the alert as resolved and clears the segment match state. The next metric run starts fresh: if the threshold is still breached it will fire a new alert.
AcknowledgeSignals that someone has seen the alert. On per-segment alerts, acknowledges at the segment level. On aggregated alerts, acknowledges at the metric-run level.
More InfoOpens the metric detail page in the Lighthouse app. Always present, regardless of alert state.

Threads, recovery, and mentions

FeatureIn Slack
ThreadsWith Reply in the alert's thread on, repeats and escalations reply under the first alert message. A higher severity also shows in the channel.
RecoveryWhen the segment stops matching, the original message can be marked recovered with how long the alert lasted, and a recovery reply can be posted in the thread (and optionally the channel).
MentionsMention the metric owner on every channel alert, and up to 3 people or groups once an alert reaches a chosen severity.

Set these per metric in the Notifications step. See Thresholds & alerts for each option.

One message for all segments

By default, each breaching segment sends its own Slack message. For metrics with many segments, set Send message on to All segments in the Notifications step to group all breaching segments from a single run into one message, most severe first.

In a combined message, the Acknowledge button operates at the metric-run level rather than per segment.

Digest and weekly summary

Admins can also send an open alerts digest (alerts still open, on the days and time you choose) and a weekly summary of runs, failed runs, and metric changes to a Slack channel, from Settings → Org notifications.

Reconnecting Slack

If your Slack integration stops working (for example, because the bot was removed from a channel or the OAuth token expired), you'll see a COMMUNICATION_SOURCE error on affected metrics. Open Destinations in the sidebar and reconnect the workspace via OAuth to restore the integration.

Verify that the Lighthouse bot is still invited to any private channels you're using; bot access is managed in Slack directly, not in Lighthouse.