Laravel monitoring guides
Practical, code-heavy guides for teams running Laravel in production.
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 grouped by pattern with p95 duration, (3) queue workers and jobs, with attempts and failures per job class, (4) scheduled task invocations with duration history, (5) request latency per route with p95. A single tool like NightOwl or Laravel Nightwatch Cloud records all five, or you can combine separate tools for each layer.
Updated
Setup
- 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.
- Setup
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.
- Setup
Set up NightOwl with Neon via the Vercel Marketplace
Vercel Postgres is now Neon on the Vercel Marketplace. Step-by-step tutorial: provisioning, unpooled connection string, agent install. ~15 minutes.
- Setup
Set up NightOwl with free Aiven Postgres
Step-by-step tutorial: connect NightOwl Laravel monitoring to Aiven's free Postgres plan. Service setup, connection details, agent install, retention tuning. ~15 minutes.
- Setup
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.
- Setup
Set up NightOwl with free Resend SMTP
Step-by-step tutorial: send NightOwl alerts through Resend's free 3,000/month tier from your own domain. Domain verification, API key, SMTP settings. ~10 minutes.
- Setup
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.
- Setup
Set up NightOwl with SendGrid SMTP
Step-by-step tutorial: send NightOwl alerts through SendGrid (a 60-day free trial at 100 emails/day). Sender verification, API key, SMTP configuration, delivery tracking. ~10 minutes.
Performance
- Performance
How to detect N+1 queries in Laravel production
Reproduce locally with preventLazyLoading, fix with eager loading, and catch them in production with the request timeline's repeated-query highlighting and Duplicates tab.
- Performance
How to monitor slow SQL queries in Laravel
Database slow logs, Laravel's DB::whenQueryingForLongerThan hook, and APM-level pattern grouping with p95 trending.
- Performance
How to monitor Laravel cache in production
CacheHit / CacheMissed events, hit-rate tracking, stampede prevention, and shared-cache store selection.
- Performance
How to find slow endpoints in Laravel production
Nginx access logs, middleware timing, route aggregation with p95, and per-request trace drilldown.
- Performance
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.
- Performance
How to track outgoing HTTP requests in Laravel
Http facade events, Guzzle middleware, per-host p95 aggregation, timeouts, and correlation IDs.
- Performance
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.
- Performance
How to monitor Laravel Octane in production
Persistent-worker memory drift, stale singletons, and crash tracking across FrankenPHP, Swoole, and RoadRunner.
- Performance
Laravel API latency: measure and improve
Latency targets for JSON APIs, per-endpoint p95 tracking, and trace-based bottleneck hunting.
Errors
Reliability
- Reliability
How to monitor Laravel queues in production
Worker supervision, failed_jobs handling, per-class duration percentiles, and alerts across Redis, SQS, database drivers.
- Reliability
How to monitor Laravel scheduled tasks (cron)
Detect silent scheduler failures with dead-man's switches, scheduler events, onOneServer, and full invocation history.
- Reliability
How to monitor Laravel mail sending in production
MessageSending and MessageSent events, queued mail worker health, and how failed sends surface as failed jobs and exceptions.
- Reliability
How to monitor failed Laravel jobs in production
failed_jobs table, JobFailed events, per-class failure counts, and alerts before users notice.
- Reliability
How to track Laravel notifications in production
NotificationSending, NotificationSent and NotificationFailed events per channel, across mail, Slack, SMS, database, and broadcast.
- Reliability
Laravel Horizon alternative for non-Redis queues
Horizon is Redis-only. Options when your queue driver is database, SQS, Beanstalkd, or multi-driver.
- Reliability
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.
- Reliability
How to monitor Laravel webhook endpoints reliably
Signature verification, async processing, idempotency, and dead-man's-switch monitoring for incoming webhooks.
- Reliability
How to detect and fix Laravel deadlocks
SQLSTATE codes, retry strategy with backoff, and patterns that make deadlocks stop happening.
- Reliability
How to monitor Laravel queue latency in production
Dispatch-to-start time per queue: how to measure it with queue events, and what Horizon's wait-time metrics cover.
- Reliability
Monitoring rate limits in Laravel
Track 429s per route, identify misbehaving consumers, and use Redis for distributed rate limits.
Context
Workflow
- 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, 51 tools, full audit trail of AI-authored edits.
- Workflow
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.
- Workflow
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
- Stack-specific
Monitoring a Laravel app on Forge
What Forge provides, what it doesn't, and how to run an APM agent as a Forge background process.
- Stack-specific
Monitoring Laravel Vapor (AWS Lambda)
Why an APM agent can't run inside Lambda, the separate-host setup NightOwl and Nightwatch use, and cold-start tracking.
- Stack-specific
Monitoring Laravel Livewire
Per-component performance, AJAX-storm avoidance, and latency targets that make reactive UIs feel reactive.
- Stack-specific
Monitoring Laravel Filament
Table resource optimization, widget caching, auth failure tracking for admin panels.
- Stack-specific
Monitoring Laravel Reverb WebSockets
Connection counts, memory growth, queued broadcasts, and why request-oriented APMs don't cover WebSockets.
- Stack-specific
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.
Flat pricing, whatever your traffic does
Every plan starts with a 14-day free trial. No credit card needed.
One app for a side project. Issues and alerts, with a 14-day dashboard window.
Start my 14-day trialUp to 3 apps and 5 people per team. Full history, the MCP server, data clearing and agent health.
Start my 14-day trialUnlimited client apps and people, one overview of every app, and apps you can hand over.
Start my 14-day trialPut these guides to work on your own app
Setup takes about five minutes, and every plan starts with a 14-day free trial. No credit card needed.