Better Stack Uptime — Monitoring Setup
| Project | PTX-CM |
| Plan | Monitors, status pages, phone calls |
Monitors to Create
1. API Health (HTTP Monitor)
| Field | Value |
|---|---|
| Name | PTX-CM API Health |
| URL | https://your-domain/health |
| Check frequency | 30 seconds |
| Request method | GET |
| Expected status | 200 |
| Alert on | 2 consecutive failures |
| Escalation | Phone call + SMS |
2. Web Frontend (HTTP Monitor)
| Field | Value |
|---|---|
| Name | PTX-CM Web |
| URL | https://your-domain/ |
| Check frequency | 60 seconds |
| Request method | GET |
| Expected status | 200 |
| Escalation |
3. Database Backup (Heartbeat Monitor)
| Field | Value |
|---|---|
| Name | PTX-CM Daily DB Backup |
| Type | Heartbeat |
| Expect every | 24 hours |
| Grace period | 30 minutes |
| Escalation | Phone call + SMS |
Setup:
- Go to Heartbeats → Create heartbeat
- Configure as above
- Copy the heartbeat URL
- Set
HEARTBEAT_URLin cron environment or server.env
Status Page
- Go to Status pages → Create
- Name: PTX Channel Manager Status
- Subdomain:
ptx-cm→ptx-cm.betteruptime.com - Add all 3 monitors above
- Share URL with ops team
On-Call Schedule
- Go to On-call → Create schedule
- Add team member(s) with phone numbers
- Attach to all monitors as escalation policy
Alert Flow
Monitor fails (2 consecutive checks)
↓
Better Stack creates incident
↓
Phone call to on-call person (immediate)
↓
SMS notification (immediate)
↓
Email notification (immediate)
↓
Status page updated automatically
↓
Monitor recovers → incident auto-resolved
↓
Status page shows "All systems operational"