Docs / Guides
Notifications
yasp sends two kinds of messages:
- Alerts tell your team that a monitor went down, degraded or recovered. They go to alert channels.
- Updates tell the public about incidents and maintenance. They go to the status page's subscribers.
Both are queued in the database and sent by the leader (see high availability), with retries. Everything sent shows in the Send log at the bottom of Notifications.
# Email delivery
Alert emails, the on-call channel and subscriber emails all need a mail server. Set it up under Notifications → Email delivery → Set up email (admins only):
| Field | What to enter |
|---|---|
| Email provider | A preset (Gmail / Google Workspace, Microsoft 365 / Outlook, Postmark, Resend, SendGrid, Mailgun, Amazon SES in us-east-1 or eu-west-1) or Custom SMTP server |
| SMTP server, Port | For a custom server. Port 587 is the default |
| Encryption | STARTTLS, TLS, or None (local relay only) |
| Username, Password or API key | The password is stored encrypted. Leave it blank to keep the stored one |
| Send as | The sender, e.g. Acme Status <status@acme.com> |
Then use Send a test email to on the same page. Until email is set up, email deliveries wait and are retried, so they go out once you save the settings (within the retry window below).
Each status page can use its own Sender name and Reply-to address for subscriber emails, under Status pages → Custom code and emails. See status pages.
# Alert channels
Add channels under Notifications → Add channel. Send test on each row checks that it works. Turn off keeps a channel but sends it nothing.
Telegram, PagerDuty and Opsgenie channels hold a secret (a bot token, routing key or API key) that a config export leaves out. An import creates them switched off, with a field on their row for the secret. Save it there, then turn the channel on; until then it can't be turned on.
| Channel | What it needs |
|---|---|
| 1 to 20 addresses, separated by commas | |
| Slack | An incoming webhook URL (Apps → Incoming Webhooks → Add to a channel) |
| Microsoft Teams | A workflow webhook URL (the channel's ⋯ → Workflows → "Post to a channel when a webhook request is received"). Alerts are Adaptive Cards |
| Discord | A channel webhook URL (channel settings → Integrations → Webhooks) |
| Telegram | A bot token from @BotFather and a chat id (-1001234567890 or @channelname). Add the bot to the chat first |
| ntfy | The topic URL, e.g. https://ntfy.sh/acme-alerts, and an access token if the topic needs one. Use a hard-to-guess topic on public servers |
| PagerDuty | An Events API v2 integration routing key (Service → Integrations). The incident resolves itself when the monitor recovers |
| Opsgenie | An API key with create and close rights, and the region (US or EU). The alert closes itself on recovery |
| On-call rotation | A rotation (see on-call). Emails whoever is on call |
| Webhook | Any URL. yasp POSTs signed JSON to it |
Bot tokens, routing keys, API keys and access tokens are stored encrypted and never shown again.
yasp refuses to send to private addresses (your LAN, localhost, cloud metadata services),
like probes do. To post to an internal webhook, list its network or host in
server.outbound_allow:
[server]
outbound_allow = ["10.0.0.0/8", "alerts.internal.example.com"]# Webhook payloads and signatures
A webhook channel gets a JSON body like this:
{
"event": "monitor.down",
"monitor": {"id": "0193…", "slug": "checkout-api", "name": "Checkout API"},
"from": "up",
"state": "down",
"at": 1764500000000,
"url": "https://status.example.com/admin/monitors/0193…",
"acknowledge_url": "https://status.example.com/admin/alerts/0193…",
"probes": {"reporting": 3, "down": ["Singapore", "Mumbai"], "degraded": []}
}
event is monitor.down, monitor.degraded, monitor.recovered, monitor.escalated or,
from Send test, test.
Every request carries a signature header:
Yasp-Signature: t=1764500000,v1=5f0c…
t is the Unix time in seconds. v1 is the hex HMAC-SHA256 of <t>.<body>, keyed with the
channel's signing secret. Find the secret on Notifications, under Signing secret in
the channel's row (it starts with whsec_; use the whole string as the key). To verify,
recompute the MAC over the raw body and reject old timestamps, which stops replays:
import hashlib, hmac, time
def verify(secret: str, header: str, body: bytes, tolerance: int = 300) -> bool:
parts = dict(p.split("=", 1) for p in header.split(","))
t = int(parts["t"])
if abs(time.time() - t) > tolerance:
return False
mac = hmac.new(secret.encode(), f"{t}.".encode() + body, hashlib.sha256).hexdigest()
return hmac.compare_digest(mac, parts["v1"])
Answer with any 2xx. 408, 429 and 5xx are retried (a Retry-After in seconds is honoured);
other 4xx answers fail the delivery for good.
# Which channels a monitor alerts
On a monitor's page, Alerts go to lists every channel. Tick the ones this monitor should alert and click Save alerts. If none is selected, every enabled channel is alerted. That's a sensible default for a small install; on a bigger one, pick channels per monitor.
A monitor alerts when it goes down and when it recovers. To be told when it's degraded too (up, but slow), turn on Also alert when it's degraded in the same card and save. Monitors feeding a component that is in a maintenance window send no alerts while it runs.
# Escalation and acknowledgement
Every time a monitor goes down it becomes an alert on the Alerts page, until it recovers.
Acknowledge tells your team someone is on it. Alert messages carry an Acknowledge link to
the same place, and the API has POST /api/v1/alerts/{id}/ack. Acknowledging needs the
editor role.
To page someone else when nobody reacts, use If nobody acknowledges on the monitor's
page: choose Escalate after (5 minutes to 1 hour), tick the channels, and Save
escalation. If the alert is still unacknowledged after that delay, those channels get one
monitor.escalated alert. Acknowledging stops it.
# On-call rotations
A rotation is a list of people who take turns. Admins add one under On-call → Add rotation:
- Hands over: every day, every week or every two weeks, At a local time, in a Timezone.
- First shift starts: the date the first person starts. For weekly handovers, its weekday is the handover day.
- Who takes turns: tick people and number them for the order. Only people who have signed in at least once are listed.
The page shows who is on call now and the next shifts. Under Overrides, pick Who covers, From and Until to swap someone in for a while. When overrides overlap, the one that starts latest wins.
To page whoever is on call, add an On-call rotation channel under Notifications and use it in a monitor's alerts or escalation. At the moment an alert goes out, yasp looks up who is on call and emails their sign-in address. If nobody is on call, the delivery fails and shows in the send log.
# Subscribers
Visitors subscribe with Get updates on the status page. They choose how:
| Option | How it works |
|---|---|
| Double opt-in: yasp mails a confirmation link, valid for two days. Unconfirmed addresses are deleted after 48 hours | |
| Browser notifications | Web Push. The browser asks for permission; nothing to confirm |
| Slack | A Slack incoming webhook address (https://hooks.slack.com/…). yasp posts a confirmation link to it |
| Microsoft Teams | A Teams Workflows webhook address. Confirmed the same way |
| Webhook | Any HTTPS address. Confirmed the same way; updates are JSON |
A subscriber follows the whole page or chosen components. The main page's subscribers hear about everything; another page's subscribers hear about incidents that touch that page's components. Components limited to an audience never reach subscribers.
Published incidents and maintenance go to subscribers unless you untick Notify subscribers when posting. See incidents.
Abuse limits on the form: five sign-ups per network per hour, at most three confirmation mails per address per day, and the same answer whether or not an address is already subscribed.
# Browser push
Push needs no setup. yasp creates its VAPID key pair on first use and stores it in the
database, encrypted. Push services are told who sends; the contact defaults to base_url.
To give them an address instead:
[vapid]
subject = "mailto:ops@example.com"
A subscription the push service reports as gone (HTTP 404 or 410) is deleted.
# Webhook subscribers
Subscriber webhooks get JSON with type (such as incident.published, incident.updated,
incident.resolved or maintenance.scheduled), headline, text, page, incident (id,
title, status, impact, body, components, url and, for maintenance, scheduled_start and
scheduled_end) and manage_url. They aren't signed; the address is the secret.
# Manage and unsubscribe links
Every email has a link to manage the subscription (change which components it follows) and an unsubscribe link. Mail clients' one-click unsubscribe (RFC 8058) works too. Opening a link only shows a page with a button, so mail scanners that prefetch links can't confirm or unsubscribe anyone. Manage links don't expire. Slack, Teams and webhook messages carry the manage link as well.
# Settings and import
Under Subscribers (admins), per status page:
- Visitors can subscribe shows or hides Get updates. Existing subscribers keep getting updates either way.
- Wait before sending: the hold, 0 to 120 seconds (default 30). After you post, the incident page shows "Notifying N subscribers soon" with Undo until the hold runs out.
- Import: a CSV of up to 1 MB with an email column, such as a Statuspage export or yasp's
own Export CSV. A
componentsorfollowscolumn picks what each person follows, by component name. Tick They already confirmed their subscription to start updates at once; otherwise each address gets a confirmation link first.
# Suppression
A subscriber whose deliveries fail permanently three times in a row (a bouncing address, a deleted webhook) is suppressed: nothing more is sent. The count resets on any success. The Subscribers list shows them as suppressed, with Resume to try again.
Privacy requests (export or erase everything about an address) are covered in operations.
# The send log and retries
Notifications → Send log lists recent deliveries, alerts and subscriber messages alike, with status, attempts and the last error.
A temporary failure (a timeout, HTTP 408, 429 or 5xx, a temporary SMTP error) is retried after 30 seconds, then 1, 2, 4… minutes with some jitter: at most 8 attempts within 24 hours. Then the delivery is dead. A permanent failure (a rejected address, HTTP 4xx, a blocked private address) stops at once as failed. Both have Retry in the log.
Delivery is at-least-once: a crash in the middle of a send can repeat a message. The log is kept for 90 days by default; see retention.