Prompt
Need uptime alerts for website and API
Latest observation
Oct 20, 2026
OpenAI APIWeb search: off
You can set up uptime alerts for both your website and API using a few different approaches, depending on how simple or robust you want it to be.
Easiest options
1. Managed uptime monitoring tools
Good if you want quick setup and alerting without building anything.
Popular choices:
- UptimeRobot
- Pingdom
- Better Uptime
- StatusCake
- Datadog Synthetics
- New Relic Synthetics
Typical checks:
- Website URL: HTTP/HTTPS check every 1–5 minutes
- API endpoint: HTTP check with expected status code/body
- Optional: keyword checks, latency thresholds, SSL expiry
Alerts:
- Slack
- SMS
- PagerDuty
- Microsoft Teams
- Webhooks
Recommended setup
For your website and API, I’d suggest:
Website
- Monitor the homepage or a critical landing page
- Alert if:
- response is not
200 - response time exceeds a threshold
- SSL certificate is near expiry
- response is not
API
- Monitor a health endpoint like:
/health/status/ready
- Alert if:
- status code is not
200 - response contains error text
- latency exceeds threshold
- status code is not
If you want a simple DIY setup
You can use:
- Cron + curl
- Prometheus + Blackbox Exporter
- Grafana Cloud
- AWS CloudWatch Synthetics
- Google Cloud Monitoring uptime checks
Example check logic:
- Run every minute
- If
curlfails or returns non-200, trigger an alert - Send alert to Slack/email/webhook
Example uptime check with curl
#!/bin/bash
URL="https://example.com/health"
STATUS=$(curl -o /dev/null -s -w "%{http_code}" "$URL")
if [ "$STATUS" != "200" ]; then
echo "ALERT: $URL returned $STATUS"
fi
Best practice
Use at least:
- 2 monitoring locations
- 1–5 minute check intervals
- separate alerts for website and API
- escalation for repeated failures
- a public status page if needed
If you want, I can help you with one of these:
- Pick the best tool for your stack and budget
- Write the exact monitoring configuration
- Set up alerts in Slack/email/PagerDuty
- Create a self-hosted monitoring solution
If you tell me your hosting provider and where you want alerts sent, I can recommend the fastest setup.