[ GUIDES ]
Laravel monitoring guides
Practical, code-heavy guides for teams running Laravel in production. Each one starts with the free way, then shows the NightOwl shortcut.
QUICK ANSWER
What do I need to monitor in a production Laravel app?
Five layers: (1) exceptions with fingerprinted grouping and alert channels, (2) slow SQL queries with pattern-level p95 trending, (3) N+1 query detection across real traffic, (4) queue workers, attempts, and failure rates per job class, (5) scheduled task invocations with duration history. A single tool like NightOwl or Laravel Nightwatch Cloud covers all five — or you can roll together individual solutions.
Updated · 2026-04-13
SETUP
Set up NightOwl with a free Supabase Postgres
Step-by-step tutorial: connect NightOwl Laravel monitoring to a free Supabase Postgres database. Project setup, connection string, agent install, retention tuning. ~15 minutes.
Set up NightOwl with a free Neon Postgres
Step-by-step tutorial: connect NightOwl Laravel monitoring to a free Neon serverless Postgres. Project setup, direct connection string, agent install, retention tuning. ~15 minutes.
Set up NightOwl with free Vercel Postgres
Step-by-step tutorial: connect NightOwl Laravel monitoring to a free Vercel Marketplace Postgres (powered by Neon). Provisioning, unpooled connection string, agent install. ~15 minutes.
Set up NightOwl with free Aiven Postgres
Step-by-step tutorial: connect NightOwl Laravel monitoring to a free Aiven multi-cloud Postgres service. Always-on compute, AWS/GCP/Azure regions, agent install, retention tuning. ~15 minutes.
Set up NightOwl with free Gmail SMTP
Step-by-step tutorial: send NightOwl alerts through your free Gmail account. App Password setup, SMTP configuration, test delivery, daily limits. ~10 minutes.
Set up NightOwl with free Resend SMTP
Step-by-step tutorial: send NightOwl alerts through Resend's free 3,000/month tier with branded sender. Domain verification, API key, sub-3-second delivery. ~10 minutes.
Set up NightOwl with free Brevo SMTP
Step-by-step tutorial: send NightOwl alerts through Brevo's free 300/day tier. Sender validation, SMTP key, no domain required to start. ~10 minutes.
Set up NightOwl with free SendGrid SMTP
Step-by-step tutorial: send NightOwl alerts through SendGrid's free 100/day tier. Sender verification, API key, SMTP configuration, delivery tracking. ~10 minutes.
PERFORMANCE
How to detect N+1 queries in Laravel production
Reproduce locally with preventLazyLoading, fix with eager loading, and catch them in production with pattern grouping.
How to monitor slow SQL queries in Laravel
Database slow logs, Laravel's DB::whenQueryingForLongerThan hook, and APM-level pattern grouping with p95 trending.
How to monitor Laravel cache in production
CacheHit / CacheMissed events, hit-rate tracking, stampede prevention, and shared-cache store selection.
How to find slow endpoints in Laravel production
Nginx access logs, middleware timing, route aggregation with p95, and per-request trace drilldown.
Laravel p95 latency — measure, alert, and improve it
Why average hides the slow tail, how to compute p95 exactly in PostgreSQL, and how to alert on it without noise.
How to track outgoing HTTP requests in Laravel
Http facade events, Guzzle middleware, per-host p95 aggregation, timeouts, and correlation IDs.
Laravel memory usage per request — measure and fix hot spots
memory_get_peak_usage, per-route aggregation, and the patterns that burn your memory_limit.
How to monitor Laravel Octane in production
Persistent-worker memory drift, stale singletons, and crash tracking across FrankenPHP, Swoole, and RoadRunner.
Laravel API latency — measure and improve
Latency targets for JSON APIs, per-endpoint p95 tracking, and trace-based bottleneck hunting.
RELIABILITY
How to monitor Laravel queues in production
Worker supervision, failed_jobs handling, per-class duration percentiles, and alerts across Redis, SQS, database drivers.
How to monitor Laravel scheduled tasks (cron)
Detect silent scheduler failures with dead-man's switches, scheduler events, onOneServer, and full invocation history.
How to monitor Laravel mail sending in production
MessageSent / MessageFailed events, queued mail worker health, delivery rate, and alert thresholds for mail failures.
How to monitor failed Laravel jobs in production
failed_jobs table, JobFailed events, per-class failure rate trending, and alerts before users notice.
How to track Laravel notifications in production
Per-channel delivery tracking across mail, Slack, SMS, database, and broadcast — with event listeners and aggregate dashboards.
Laravel Horizon alternative for non-Redis queues
Horizon is Redis-only. Options when your queue driver is database, SQS, Beanstalkd, or multi-driver.
How to debug Laravel timeouts and 504 errors
Where each layer fails — PHP, PHP-FPM, Nginx, database — and how to tell them apart without just raising every timeout.
How to monitor Laravel webhook endpoints reliably
Signature verification, async processing, idempotency, and dead-man's-switch monitoring for incoming webhooks.
How to detect and fix Laravel deadlocks
SQLSTATE codes, retry strategy with backoff, and patterns that make deadlocks stop happening.
How to monitor Laravel queue latency in production
Dispatch-to-start time as a per-queue SLO. Why Horizon's point-in-time view isn't enough.
Monitoring rate limits in Laravel
Track 429s per route, identify misbehaving consumers, and use Redis for distributed rate limits.
WORKFLOW
Using the NightOwl MCP server with Claude Code, Codex, and Cursor
Connect AI coding assistants to NightOwl via the Model Context Protocol — bearer tokens, six tools, full audit trail of AI-authored edits.
How to monitor Laravel in production — complete checklist
The five layers every production Laravel app needs to monitor, with tool picks and setup code for each.
How to debug Laravel performance issues in production
A structured trace-based debugging workflow. Safe tools, and how to avoid ever debugging live.
STACK-SPECIFIC
Monitoring a Laravel app on Forge
What Forge provides, what it doesn't, and how to add APM as a Forge daemon.
Monitoring Laravel Vapor (AWS Lambda)
Why persistent-agent APMs don't fit Lambda, cold-start tracking, and Vapor-compatible options.
Monitoring Laravel Livewire
Per-component performance, AJAX-storm avoidance, and latency targets that make reactive UIs feel reactive.
Monitoring Laravel Filament
Table resource optimization, widget caching, auth failure tracking for admin panels.
Monitoring Laravel Reverb WebSockets
Connection counts, memory leaks, broadcast failure rates, and why request-oriented APMs don't cover WebSockets.
Monitoring a Laravel Cloud deployment
What Cloud's built-in monitoring covers, what it doesn't, and how to layer an APM without fighting the platform.
PRICING
Flat pricing. No event caps. No per-seat fees.
14-day free trial, no credit card. Your PostgreSQL, your data.
HOBBY
1 app · 14 days lookback · all Laravel events
TEAM
Up to 3 connected apps · unlimited environments · all Laravel events
AGENCY
Unlimited apps · unlimited agent instances · same flat rate at any traffic