Alerts & notifications
Hoist watches your servers and apps every minute and tells your team when something needs attention, by email, Slack, Discord or your own webhook.
Alerts
Go to Team settings → Alerts and add a rule. Pick what to watch, a limit, and how many minutes it must stay over the limit before the alert fires: 1, 5, 10, 15, 30 or 60. You hear once when it fires and once when it recovers.
| Watch | Measured | Applies to |
|---|---|---|
| Server CPU, memory, disk | % used, from the server's heartbeat | One server or any server |
| App CPU | % of one core, all of the production deployment's processes together | One project |
| App memory | MB, all processes together | One project |
| Site down | % of uptime checks failing | One project or every project |
| Response time | ms, from the uptime checks | One project or every project |
New teams start with a disk alert at 85% for 5 minutes.
Tick Email the team's owners and admins on a rule to email them. Alerts also go to every notification channel that has the An alert rule fires or recovers event.
Admins and owners manage alerts.
Uptime checks
Hoist requests each project's production URL every minute. A timeout, a connection error or a 5xx response counts as failing. A 4xx still counts as up, because the app answered. Checks are paused while the app is in maintenance mode.
Servers that stop sending heartbeats are handled separately: they're marked Unreachable after three minutes.
Notification channels
Go to Team settings → Notifications to choose where events go. Each channel picks the events it wants:
- a deploy fails
- a deploy succeeds
- a server stops sending heartbeats
- a domain's DNS or certificate stops working
- an alert rule fires or recovers
- a scheduled job fails or recovers
Channels can be:
- Slack: create an incoming webhook for a channel and paste its URL.
- Discord: in the channel's settings, open Integrations → Webhooks, create one and paste its URL. Hoist never pings @everyone or roles.
- Email: to the team's owners and admins, or to everyone in the team. Only team members can receive these.
- Webhook: Hoist sends a signed JSON POST to your own HTTPS endpoint on the public internet.
Separately, Email failed deploys emails the person who started a failed deploy, with the error and a link to the log.
Owners manage notification channels.
Webhooks
Each webhook request has a JSON body like this one, for an alert firing:
{
"event": "alert.changed",
"title": "Alert: web-1",
"text": "Server disk on web-1 averaged 91% over the last 5 minutes, above your limit of 85%.",
"url": "https://hoist.irdc.ph/teams/…/settings/alerts",
"url_label": "Open alerts",
"level": "failure"
}
event is one of deployment.failed, deployment.ready, server.unreachable, domain.problem, alert.changed or scheduled_job.failed. level is failure, warning or success.
Each request also carries these headers:
X-Hoist-Event: the event, as in the bodyX-Hoist-Delivery: a unique ID for the deliveryX-Hoist-TimestampandX-Hoist-Signature: sha256=…, an HMAC-SHA256 of{timestamp}.{raw body}using the channel's signing secret. Check the signature, and reject timestamps more than five minutes old:
$expected = 'sha256='.hash_hmac('sha256', $timestamp.'.'.$body, $secret);
hash_equals($expected, $signature); // true: it came from Hoist
Find the signing secret in the channel's menu under Show signing secret. Viewing it is recorded in the audit log.