Laravel Cloud gives you enough monitoring to feel covered, which is the trap. The dashboard shows CPU, logs, queue status, and last-run times, so the gaps that actually bite (is a specific endpoint slow, which query is the N+1, did this exception start after the deploy) never announce themselves. You just don't have the data to answer them. The table below shows where Cloud's built-in monitoring stops and what an APM adds on top.
What Cloud provides
| Layer | Cloud built-in | Still want APM for |
|---|---|---|
| Server metrics | CPU, memory, disk | Application-layer telemetry |
| Logs | 1, 7 or 30 days by plan, basic viewer | Long retention, structured search |
| Queue workers | Worker status, failed_jobs UI | Per-class duration, attempts and failures |
| Scheduled tasks | Last-run timestamps | Duration and status of every run |
| Database | Engine metrics (connections, CPU) | Per-query p95, repeated queries per request |
| Exceptions | Appears in logs | Grouping, alerts, issue management |
Running NightOwl as a background process
Laravel Cloud has no config file for processes; you add them in the dashboard. The laravel/nightwatch package sends telemetry to an agent on the same instance, so the agent has to run next to every instance that sends it. Add a background process with this command on your App cluster, and again on each worker cluster:
Background process command
php artisan nightowl:agent
Set NIGHTOWL_TOKEN and the NIGHTOWL_DB_* variables in the environment, and point the agent at your PostgreSQL, either Cloud's managed instance or a separate DB. The latter keeps telemetry storage isolated from application hot-path queries.
Autoscaling + cold starts
Cloud scales app containers based on traffic. Config, route and view caches are built into the image at build time, but a new container still starts cold, with an empty opcache and fresh connections. A static property can't tell you a container's age under PHP-FPM, because every request runs with fresh static state, so store the first-seen time in a file:
app/Http/Middleware/TagContainerBoot.php
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class TagContainerBoot
{
public function handle(Request $request, Closure $next)
{
$marker = sys_get_temp_dir().'/container-booted-at';
if (! is_file($marker)) {
file_put_contents($marker, (string) microtime(true));
}
$ageSeconds = microtime(true) - (float) file_get_contents($marker);
$isCold = $ageSeconds < 30;
$request->attributes->set('container_age_seconds', $ageSeconds);
$request->attributes->set('is_cold_boot', $isCold);
return $next($request);
}
}
Add these values to your log context (Log::withContext()) or your APM's custom context so cold-boot requests can be segmented separately. A slow cold path is a bootstrap problem (reduce package size and the work your service providers do at boot); a slow warm path is a code problem.
Log egress
Cloud's built-in log viewer is fine for quick debugging but thin on retention. For long-term log aggregation, add a Monolog remote handler in config/logging.php pointing at Loki, Axiom, or Better Stack. See our production monitoring guide for how logs fit alongside the other signals.
Nightwatch Cloud vs NightOwl on Laravel Cloud
Both work. The choice is about tradeoffs:
- Nightwatch Cloud: same team as Laravel Cloud, designed for zero-config pairing. Each plan has a monthly event quota; ingestion pauses at the quota unless you opt in to buy extra events. Data on the Laravel team's cloud.
- NightOwl: flat from $5/month, data in a PostgreSQL you own. Pairs with Cloud via the background-process setup above. Trade zero-config for data residency.