Skip to content
Docs

Alerts

An alert channel is somewhere Pulse sends alerts: email addresses, a Slack channel, a PagerDuty service, or a webhook to your own system. You create channels once, and each check chooses which of them it alerts.

How alerting works

  • Console notifications are always sent. Every incident appears in your console notifications and in the account's activity log, whether or not the check has any channels.
  • Channels are chosen per check. A channel receives alerts only from the checks that tick it, under the check's Settings → Send alerts to. A check can alert several channels.
  • A channel can be switched off without deleting it. While it is off it receives nothing.

Channels are managed under Pulse → Alerts. An account can have up to 20, and a check can alert up to 20.

What is sent

AlertWebhook eventWhat it says
Incident openedincident.opened"Production API is down", with the cause and the locations failing.
Failing across regionsincident.escalated"Production API is now failing across regions". Sent when an incident that began in some locations becomes widespread.
Incident resolvedincident.resolved"Production API recovered after 4 minutes". If the incident closed without a recovery, it says why instead.
Certificate expiringssl.expiring"The certificate for example.com expires in 14 days". Sent at 30, 14 and 7 days by SSL certificate checks.
TesttestSent only when you choose "Send a test alert" on a channel.

The rules for when an incident opens and is resolved are in Incidents. A check that is only slow does not send an alert.

Email

Up to 10 addresses per channel. They do not need an Edge account, so a channel can include a shared inbox or a customer. Each email has the subject [Edge Pulse] followed by what happened, and links to the check in the console.

Slack

  1. In Slack, create an app with Incoming Webhooks switched on.
  2. Add a webhook for the channel that should get the alerts, and copy its URL. It starts with https://hooks.slack.com/services/.
  3. In the console, go to Pulse → Alerts → Add channel → Slack and paste the URL.

Messages are coloured red for an incident, green for a recovery and amber for a certificate that is about to expire, and link to the check.

PagerDuty

  1. In PagerDuty, open the service that should be paged and add an Events API v2 integration.
  2. Copy its integration key, also called a routing key.
  3. In the console, go to Pulse → Alerts → Add channel → PagerDuty and paste the key.

What PagerDuty then receives:

  • An incident in Pulse triggers an incident in PagerDuty, and resolves it when the check recovers or the incident is closed.
  • The severity is error for an incident in some locations, critical for a widespread one, and warning for a certificate about to expire.
  • A certificate warning triggers an incident that Pulse does not resolve. Resolve it in PagerDuty once the certificate is renewed.
  • A test alert triggers an incident and resolves it at once, so nobody is left paged.

Webhook

A webhook channel sends a JSON POST to your URL for every event. Use it to open tickets, post to a chat tool Pulse has no channel for, or start your own recovery steps.

JSON
{
  "event": "incident.opened",
  "sentAt": 1795478420000,
  "check": {
    "id": "chk_ab12",
    "name": "Production API",
    "type": "http",
    "target": "https://example.com/health"
  },
  "incident": {
    "id": "inc_9",
    "status": "open",
    "scope": "regional",
    "cause": "The server answered HTTP 503",
    "resolution": "",
    "startedAt": 1795478417000,
    "resolvedAt": null,
    "durationSec": null,
    "locations": [
      { "id": "ams1", "name": "Amsterdam", "region": "EU", "error": "The server answered HTTP 503" }
    ]
  },
  "url": "https://edge.network/console/pulse/chk_ab12"
}
FieldDescription
eventOne of the events in the table above.
sentAtWhen this attempt was sent. All times are in milliseconds since 1 January 1970 UTC.
checkThe check's id, name, type and what it points at. Not present on a test.
incidentPresent on the three incident events. scope is regional (some locations) or global (widespread). On incident.resolved, resolution is recovered, paused, edited, deleted or monitoring_stopped, and durationSec is how long it lasted.
daysRemaining, notAfterPresent on ssl.expiring only: the days left, and when the certificate expires.
urlThe check in the console.

Request headers

HeaderValue
X-Pulse-EventThe event, the same as in the body.
X-Pulse-DeliveryAn id for this alert. It is the same on every attempt to deliver it.
X-Pulse-SignatureSent only when the channel has a signing secret: sha256= followed by the HMAC-SHA256 of the request body, in hex, keyed with the secret.
User-AgentEdgePulse-Alerts/1.0 (+https://edge.network/pulse)

What your endpoint must do

  • Answer with any 2xx status within 10 seconds. Anything else is tried again.
  • Answer directly. Redirects are not followed, so use the final address.
  • Be reachable on a public address. A URL that leads to a private address is refused.
  • Expect the same alert more than once. If your answer is lost on the way back, the alert is sent again. Use X-Pulse-Delivery to recognise one you have already handled.

Checking the signature

Set a signing secret on the channel, then compute the same HMAC over the body you received and compare it with the header. Use the raw body: parsing the JSON and writing it out again can change it.

JavaScript
import crypto from 'node:crypto'

// rawBody is the request body exactly as received, before any JSON parsing
function isFromPulse(rawBody, signatureHeader, secret) {
  const expected = 'sha256=' + crypto.createHmac('sha256', secret).update(rawBody).digest('hex')
  const a = Buffer.from(signatureHeader || '')
  const b = Buffer.from(expected)
  return a.length === b.length && crypto.timingSafeEqual(a, b)
}

Delivery and retries

  • Retries. An alert that does not get through is tried three more times: 30 seconds later, then 2 minutes after that, then 10 minutes after that. Then it is marked failed.
  • Order. The alerts for one incident reach a channel in order. "Recovered" waits behind a "down" that is still being retried.
  • One slow channel does not hold up the others. Each channel is sent to separately.
  • The log. Pulse → Alerts lists the last 100 alerts sent through a channel, with whether each one arrived and, for a failure, the reason. Each incident lists its own alerts too. The log is kept for 30 days.

Warning

Send a test alert after you create or change a channel. A channel that points at the wrong place fails silently until the day you need it.

Saved credentials

A Slack webhook URL, a PagerDuty integration key and a webhook signing secret are stored but never shown again: the console shows only the last four characters, or that a secret is set. When you edit a channel, leave the field empty to keep what is saved, or type a new value to replace it.

Next steps

Something unclear or out of date? Tell us, or read this page as Markdown.