Članci s tagom #monitoring
-
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).
-
GDPR-compliant monitoring: what EU founders need to know
US-hosted monitoring tools collect your customers' IPs, your cron outputs, your incident payloads. If you sell to EU customers, you need to think about this. Here's what matters and what to actually do.
-
Cron heartbeat monitoring: detecting silent job failures with z-score output analysis
Sonar cron heartbeat: push-first (job pings /sonar/ping/<token>), CronScheduleEvaluator 5-field parser (*, digit, range, step, comma) forward-iterates minute-by-minute to nextExpectedAfter(), isOverdue = now > nextExpected + graceSeconds. missed_ping = WARNING. OutputDiffer: BASELINE_SAMPLE=20, MIN_BASELINE=5, ZSCORE_THRESHOLD=3.0/5.0 (warning/critical), MEDIAN_DROP_FACTOR=0.50/0.01. output_anomaly = WARNING or CRITICAL. Zero content storage — derived metrics only.
-
Why your status page costs $20+/month (and how to fix that)
Statuspage.io starts at $29/mo. Cronitor charges $25/mo extra. UptimeRobot Pro tier required. Why is a static HTML page so expensive — and what indie SaaS founders actually need.
-
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.
-
SSL certificate expiry: 5 ways to monitor (and why most teams pick wrong)
Your Let's Encrypt cert auto-renews until it doesn't. Here are 5 ways to know in advance — and which one actually saves you when renewal fails silently.
-
Cron monitoring 101: catching silent failures
Your cron exits 0 every night. But last Tuesday it silently skipped 9 of 10 databases. Here's how to catch that — without writing your own watchdog.
-
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.
-
Cross-source incident correlation in PHP: when one event is four signals in disguise
IncidentCorrelator: 4 declarative patterns (ddos_via_expensive_query/breach_with_service_degradation/systemic_failure/user_experience_degradation), every-5-minute cron scan, 4 data sources loaded per-window, per-tenant grouping, idempotent insert on (signature+window_start), luka.correlated_incident event dispatch.
-
APM in PHP without a SaaS vendor: endpoint profiling from the middleware layer
LUKAmonitoring captures every request's query count, timing, and memory from a priority-5 middleware. p50/p95/p99 per route, N+1 detection, Cohen's d query regression, and a cross-addon incident correlator that spots DDoS-via-expensive-query and breach-with-service-degradation. No Datadog subscription.