Recipes
Worked examples — multi-region login monitor, heartbeat-backed cron, custom-domain status page, Telegram P1 routing, PagerDuty webhook.
Monitor a login flow from three regions, alert only on a majority
Section titled “Monitor a login flow from three regions, alert only on a majority”- Monitors → + New monitor → HTTP, URL = your login page, method
POSTwith form body, expected200, 302. - Enable regions
iad,fra,sin. Region rule =majority. - Alerts → + New rule, scope = this monitor, trigger =
Status becomes down for 3 consecutive checks, channel = your Slack.
A single-region blip won’t page you. Two regions failing in agreement will.
”Don’t page me for the first 5 minutes”
Section titled “”Don’t page me for the first 5 minutes””Set the monitor interval to 60s and the rule trigger to for 5 consecutive checks. Five consecutive minute-checks = a five-minute warning before the page lands.
Status page on a customer’s apex domain
Section titled “Status page on a customer’s apex domain”Operator side:
- Status pages → + New page, slug
customer-acme. - Custom domain → Add
status.acme.com. Copy the TXT record value.
Customer side:
- Customer publishes
_pulse-challenge.status.acme.com IN TXT "<value>"in their DNS.
Operator side:
- Verify in Pulse. Traefik issues a cert via HTTP-01 on the next request to
https://status.acme.com.
Notify a Telegram group only on P1s
Section titled “Notify a Telegram group only on P1s”- Create the Telegram channel (per Notification channels → Telegram).
- Create a rule with Severity = P1, scope =
all monitors, condition =status_is down for 3, channel = Telegram only.
Other severities go to other channels (e.g. Slack for P2/P3, email for P4/P5).
Heartbeat your nightly backup
Section titled “Heartbeat your nightly backup”- Monitors → + New monitor → Heartbeat. Name “Nightly DB backup”. Interval
1h(or whatever your job runs at), tolerance30m. - Copy the heartbeat token.
- In your backup script:
set -euo pipefailpg_dumpall | gzip > /var/backups/db-$(date -u +%F).sql.gzcurl -fsS "$PULSE_BASE/api/v1/heartbeat/$BACKUP_TOKEN"If the script fails before the curl, the monitor goes red within tolerance and your alert rule fires.
Webhook to PagerDuty
Section titled “Webhook to PagerDuty”PagerDuty’s Events API v2 accepts arbitrary JSON via webhook. Create a Pulse webhook channel, paste the PagerDuty integration URL, and add a transform layer if you want the bodies to match PD’s schema exactly. Most installs find PD’s permissive schema accepts Pulse’s body unmodified for P1/P2 routing.