Članci s tagom #uptime
-
Public status pages in PHP SaaS: per-tenant, opt-in, no subdomain required
Sonar status page: /sonar/status/{slug} public route (no auth, `minimal` middleware). sonar_tenant_settings.public_status_page_enabled DEFAULT 0 — 404 until opt-in (slug enumeration defence). sonar_monitors.is_public per-monitor gate. 90-day uptime calendar bucketed in PHP per-monitor-per-day (up/degraded/down). M6: raw probe summary sanitised to type-based label (internal IP leak prevention). Overall status: critical → down, warning → degraded, else up. Solo+ tier gate (status_pages limit).
-
HTTP monitoring beyond uptime: 4 incident types that catch silent failures
Sonar HTTP probe: 4 incident types — http_down (probe unreachable/timeout), http_status_unexpected (wrong code → WARNING), http_slow (duration > threshold, CRITICAL at 2×, auto-resolves), http_body_mismatch (body_contains substring missing → CRITICAL), schema_drift (SHA256 diff opt-in Pro+, default off). Body cap 1MB, excerpt 512B. FOLLOWLOCATION=false SSRF defence. First probe records baseline silently — no alert.
-
Telegram-first monitoring alerts: inline keyboard ack/snooze without a mobile app
Sonar alert pipeline: TelegramAlertSender returns message_id → persisted for editMessageReplyMarkup, SonarCallbackHandler from.id (NOT chat.id) → company_id cross-tenant gate, re-alert cadence (critical=30min/warning=120min/info=never), sonar:ack stamps acknowledged_at (permanent), sonar:snooze:1h stamps snoozed_until (temporary), inline alert flush in RunMonitorChecksJob cuts latency to ~10s.
-
Building an infrastructure monitoring SaaS in PHP: 5 monitor types on one stack
Sonar: 5 monitor types (cron heartbeat + output diff, SSL cert expiry, HTTP uptime/body/schema-drift, domain WHOIS expiry, renewal reminder), Telegram-first with inline ack/snooze, incident digest (template, no AI), 4 tiers (free/Solo $9.99/Pro $29/Agency $79), RunMonitorChecksJob every-minute tick with per-tick budget 50 monitors oldest-checked-first, sonar_tenant_settings 1-to-1 per tenant.