Prompt
How do I send uptime alerts to Slack and PagerDuty?
Latest observation
Oct 20, 2026
OpenAI APIWeb search: off
You can do this by having your uptime monitor trigger two notifications on each alert event:
- Slack via an incoming webhook or a Slack app
- PagerDuty via an Events API v2 integration key
Typical setup
1) Send alerts to Slack
Create a Slack Incoming Webhook:
- In Slack, create or open a Slack app
- Enable Incoming Webhooks
- Add a webhook to the channel you want alerts in
- Copy the webhook URL
Then have your uptime system POST a message like:
{
"text": "Uptime alert: example.com is DOWN"
}
2) Send alerts to PagerDuty
Create a PagerDuty integration:
- In PagerDuty, go to Integrations
- Add a new Events API v2 integration to your service
- Copy the routing key
Then send an event payload to PagerDuty’s Events API:
{
"routing_key": "YOUR_ROUTING_KEY",
"event_action": "trigger",
"payload": {
"summary": "example.com is DOWN",
"severity": "critical",
"source": "uptime-monitor",
"component": "website"
}
}
How to wire this into your uptime monitor
If your monitoring tool supports multiple alert integrations, add both:
- Slack webhook URL
- PagerDuty routing key / integration
If it only supports one destination, use a small relay service or webhook handler that receives the alert once and forwards it to both Slack and PagerDuty.
Example flow
- Monitor detects outage
- It sends webhook to your alert handler
- Handler posts to Slack
- Handler calls PagerDuty Events API to trigger incident
Notes
- Use Slack for visibility
- Use PagerDuty for on-call escalation
- Make sure you also send:
- a resolve event when service recovers
- deduplication keys so repeated alerts don’t create duplicates in PagerDuty
If you want, I can give you:
- a Node.js, Python, or bash example
- a serverless webhook relay example
- a setup guide for a specific uptime tool like UptimeRobot, Better Stack, or Healthchecks