Skip to content
pingwright
Docs menu Alerts and channels

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

ChannelWhat you give itWhat it does
SlackAn incoming webhook URLA message in that channel.
Microsoft TeamsAn incoming webhook or Teams workflow URLA message in that channel.
DiscordA channel webhook URLA message in that channel.
PagerDutyAn Events API v2 integration keyOpens a PagerDuty incident when a check goes down and resolves it when it recovers.
EmailMembers of your organization (1 to 20)An email to each, threaded per incident.
WebhookAn https URLA 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:

HeaderValue
X-Pingwright-EventThe event, such as check.down.
X-Pingwright-DeliveryA unique id for this delivery.
X-Pingwright-Signaturet=<unix seconds>,v1=<hex HMAC-SHA256>
User-AgentPingwright-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.

JavaScript
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 ?? ''));
}

Set up an alert channel in the console