Uptime
Alerts and channels
When a check goes down, Pingwright opens an incident and sends one message per problem to your alert channels: which check, which locations are failing, since when, and the server's own error, word for word. When it recovers, they hear that too.
Channels
| Channel | What you give it | What it does |
|---|---|---|
| Slack | An incoming webhook URL | A message in that channel. |
| Microsoft Teams | An incoming webhook or Teams workflow URL | A message in that channel. |
| Discord | A channel webhook URL | A message in that channel. |
| PagerDuty | An Events API v2 integration key | Opens a PagerDuty incident when a check goes down and resolves it when it recovers. |
| Members of your organization (1 to 20) | An email to each, threaded per incident. | |
| Webhook | An https URL | A signed JSON request. See Webhooks. |
Webhook URLs and keys are write-only: once saved, the console shows only a hint of them.
Pingwright does not send SMS or make phone calls. A PagerDuty channel hands the incident to PagerDuty, which can.
An organization can have up to 20 channels.
What each channel gets
For each channel you choose:
- Events: down, recovered, and "still down" reminders. At least one.
- Reminders: how often to remind while a check stays down, from every 15 minutes to once a day, or never.
- Which checks: all checks (including ones created later), or up to 200 chosen ones.
- Delay: how long a check must stay down before this channel hears about it, up to 1 hour. An outage shorter than the delay sends nothing to that channel, neither down nor recovered.
Channels also hear when a private location goes offline or comes back, and when a certificate is about to expire or has been renewed. Alert rules on your metrics, logs and errors send to the same channels.
Less noise
- Grouping. Several checks failing at once arrive as one message. Down alerts without a delay, and recoveries, wait 10 seconds to collect the others.
- Flapping. A check with 3 incidents within an hour is flapping. Its channels get one notice instead of a stream, until 30 minutes pass without a new incident.
- Mute. Mute a check's alerts for a deploy or maintenance, for up to 30 days. It keeps being checked; incidents and status pages carry on as usual.
Test and delivery history
Send a test to any channel from the console to see that it arrives. Each incident shows its delivery history: whether every alert went out, failed, or was held back, and why.
Webhooks
A webhook channel sends a JSON POST to your URL. The URL must be https with a public host name.
Each request has these headers:
| Header | Value |
|---|---|
X-Pingwright-Event | The event, such as check.down. |
X-Pingwright-Delivery | A unique id for this delivery. |
X-Pingwright-Signature | t=<unix seconds>,v1=<hex HMAC-SHA256> |
User-Agent | Pingwright-Webhook/1 |
Events: check.down, check.recovered, check.reminder, check.flapping, check.certificate_expiring, check.certificate_renewed, location.offline, location.online, alert_rule.firing, alert_rule.resolved, alert_rule.triggered, alert_rule.reminder, and test.
Verify the signature
The signature is an HMAC-SHA256, keyed with the channel's signing secret (whsec_…, shown when you create the channel), over the timestamp, a dot, and the raw request body. Compute it and compare in constant time; reject old timestamps to stop replays.
import { createHmac, timingSafeEqual } from 'node:crypto';
function verify(rawBody, header, secret) {
const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
const expected = createHmac('sha256', secret).update(`${parts.t}.${rawBody}`).digest('hex');
const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
return fresh && timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1 ?? ''));
}