How dani2159/uptime-server works
WatchTower is a Laravel uptime and API-health monitoring application. Operators configure monitors and notification channels, scheduled checks record status and logs, and status transitions can create incidents and trigger alerts; users then inspect dashboards, history, SLA reports, and public status pages. The graph also preserves API-health checks, DNS/IP and SSL checks, maintenance, escalation, and audit capabilities documented or represented in the tree. Some links rely on the README or SOURCE INDEX because their implementation excerpts were not provided.
Main entry points: web.php Web routes · CheckMonitors.php Scheduled monitor checks · Monitor.php Monitor records · DashboardController.php Dashboard
Components 24
Web interface
- Web routes
routes/web.php - Dashboard
app/Http/Controllers/DashboardController.php - Monitor management
app/Http/Controllers/MonitorController.php - Settings
app/Http/Controllers/SettingController.php
Monitoring
- Monitor records
app/Models/Monitor.php - Scheduled monitor checks
app/Console/Commands/CheckMonitors.php - Uptime checker
app/Services/UptimeChecker.php - DNS and IP lookup
app/Services/DnsResolver.php - SSL checks
app/Services/SslChecker.php - Check history
app/Models/MonitorLog.php
Incidents and alerts
- Maintenance windows
app/Models/MaintenanceWindow.php - Incident tracking
app/Models/Incident.php - Escalation jobs
app/Jobs/EscalateIncidentJob.php - Notification dispatch
app/Services/NotificationService.php - Notification channels
app/Models/NotificationChannel.php - Telegram, WhatsApp, webhook
API health
- API health dashboard
app/Http/Controllers/BpjsDashboardController.php - API health registry
app/Services/ApiHealthRegistry.php - BPJS and Satu Sehat checks
app/Services/BpjsChecker.php
Status and reporting
- Public status pages
app/Http/Controllers/StatusPageController.php - SLA reports
app/Http/Controllers/SlaReportController.php - Audit logging
app/Services/AuditService.php
Other components
- Operator
- Monitored endpoints
Connections 37
- Operator → Web routes: uses
routes/web.php - Web routes → Dashboard: routes to
routes/web.php - Web routes → Monitor management: routes to
routes/web.php - Web routes → Settings: routes to
routes/web.php - Web routes → API health dashboard: routes to
routes/web.php - Web routes → Public status pages: routes to
routes/web.php - Web routes → SLA reports: routes to
routes/web.php - Monitor management → Monitor records: creates and updates
app/Http/Controllers/MonitorController.php - Monitor management → DNS and IP lookup: resolves IPs
app/Http/Controllers/MonitorController.php - Monitor management → SSL checks: checks SSL
app/Http/Controllers/MonitorController.php - Scheduled monitor checks → Monitor records: loads monitors
app/Console/Commands/CheckMonitors.php - Scheduled monitor checks → Uptime checker: runs checks
app/Console/Commands/CheckMonitors.php - Scheduled monitor checks → Maintenance windows: checks windows
app/Console/Commands/CheckMonitors.php - Scheduled monitor checks → Incident tracking: tracks transitions
app/Console/Commands/CheckMonitors.php - Scheduled monitor checks → Notification dispatch: dispatches alerts
app/Console/Commands/CheckMonitors.php - Uptime checker → Monitor records: checks monitor
app/Services/UptimeChecker.php - Uptime checker → Check history: saves results
app/Services/UptimeChecker.php - Monitored endpoints → Uptime checker: receives probes
- Dashboard → Uptime checker: checks on demand
app/Http/Controllers/DashboardController.php - Dashboard → Notification dispatch: requests alerts
app/Http/Controllers/DashboardController.php - Dashboard → Monitor records: reads status
app/Http/Controllers/DashboardController.php - Dashboard → Check history: reads history
app/Http/Controllers/DashboardController.php - Notification dispatch → Notification channels: selects channels
app/Services/NotificationService.php - Notification dispatch → Telegram, WhatsApp, webhook: sends messages
app/Services/NotificationService.php - Telegram, WhatsApp, webhook → Operator: delivers alerts
- Escalation jobs → Notification dispatch: uses notifier
app/Jobs/EscalateIncidentJob.php - Escalation jobs → Incident tracking: loads incident
app/Jobs/EscalateIncidentJob.php - API health dashboard → API health registry: lists services
- API health registry → BPJS and Satu Sehat checks: registers checkers
app/Providers/AppServiceProvider.php - Public status pages → API health registry: reads services
app/Http/Controllers/StatusPageController.php - Public status pages → Monitor records: reads monitors
app/Http/Controllers/StatusPageController.php - Public status pages → Check history: reads heartbeats
app/Http/Controllers/StatusPageController.php - SLA reports → Incident tracking: reads incidents
app/Http/Controllers/SlaReportController.php - SLA reports → Monitor records: reads uptime
app/Http/Controllers/SlaReportController.php - Monitor management → Audit logging: records actions
app/Http/Controllers/MonitorController.php - Audit logging → Audit logging: writes audit log
app/Services/AuditService.php - Scheduled monitor checks → DNS and IP lookup: resolves addresses
app/Console/Commands/CheckMonitors.php