What you'll have at the end
A working NightOwl dashboard showing live telemetry from your Laravel app (requests, queries, jobs, exceptions, scheduled tasks), with all data stored in a free Neon serverless Postgres under your control. Total monthly cost: from $5 for NightOwl Hobby, $0 for the database while you stay inside the free plan's limits.
Why Neon free tier works for NightOwl
Three properties make Neon a clean fit for NightOwl's BYOD Postgres model:
- Real Postgres, fully libpq-compatible: NightOwl uses native COPY, JSONB, and partial indexes; Neon supports all of it without a translation layer.
- 0.5 GB free storage per project: enough for a few days of telemetry at small-app traffic with retention pruning.
- Branching: useful when you want to test a NightOwl schema migration without touching production data.
- The agent keeps compute awake, so free CU-hours run out mid-month. The drain queries the database at least once a minute, even when your app is idle, so Neon never scales to zero. At 0.25 CU that is about 180 CU-hours a month against the free 100. When they run out, Neon suspends the compute until the next billing period and NightOwl stops receiving data. For always-on monitoring, use Neon Launch or a different provider such as Supabase or Aiven.
- Small free compute (0.25 to 2 CU autoscaling). Aggregation queries over multiple days of telemetry can take a few seconds on the smallest size. This is Neon, not NightOwl. Verify in Neon's own SQL Editor; the same queries will be just as slow.
- 0.5 GB hard cap. Heavy traffic blows through this in days. Tune retention aggressively or upgrade to the Launch plan.
Step 1. Create a free Neon project
Head to neon.tech, sign in, and click New project. Pick a region close to your Laravel app's server, so the agent's drain doesn't cross regions on every batch.
Neon creates a default database called neondb with a randomly generated user and password. You can rename, but for NightOwl telemetry the defaults are fine.
Step 2. Copy the direct connection string
On the project dashboard, click Connect. The connection modal offers two kinds of connection: Pooled (the Connection pooling toggle on, hostname has a -pooler suffix) and Direct (toggle off, regular hostname).
Turn Connection pooling off and copy the direct connection string. The drain runs each batch in one transaction, so it would work through the pooler too, but nightowl:partition needs a direct session. The direct connection works for every NightOwl command.
The string ends with sslmode=require because Neon only accepts TLS connections. The NightOwl dashboard ignores that part of the URI and negotiates TLS on its own; for the agent you set NIGHTOWL_DB_SSLMODE=require in Step 4.
Step 3. Register the app in NightOwl
Sign in to the NightOwl dashboard (or start a free trial). On the Apps page, click Connect App. Paste the Neon direct URI into the Connection String field. It fills in the fields below it for you:
- Host: the hostname (e.g.
ep-xxx-xxx.region.aws.neon.tech, no-poolersuffix) - Port:
5432 - Database:
neondb(Neon's default DB name) - Username: the user from the URI (Neon generates a random one)
- Password: the password embedded in the URI
Give the app a name under App Name (e.g. "production-api") and click Test Connection. Before the agent is installed it reports Connected — schema missing: NightOwl reached your database, and the tables don't exist yet. That's expected; nightowl:install creates them in Step 4. Click Save. A banner shows two lines, NIGHTOWL_TOKEN and NIGHTOWL_APP_ID. Copy both now: the token is shown only once.
Step 4. Install the NightOwl agent
In your Laravel project root:
composer require nightowl/agent
Add the database connection details (same values you entered in Step 3) plus the two lines from the token banner to your Laravel .env:
NIGHTOWL_DB_HOST=ep-xxx-xxx.region.aws.neon.tech
NIGHTOWL_DB_PORT=5432
NIGHTOWL_DB_DATABASE=neondb
NIGHTOWL_DB_USERNAME=[user from URI]
NIGHTOWL_DB_PASSWORD=[password from URI]
NIGHTOWL_DB_SSLMODE=require
NIGHTOWL_TOKEN=[agent token from Step 3]
NIGHTOWL_APP_ID=[app id from Step 3]Then run the installer:
php artisan nightowl:install nightowl:install publishes config/nightowl.php and runs the schema migrations against the nightowl connection, creating all nightowl_* tables in your Neon database.
Step 5. Start the agent and verify telemetry
Run the agent process. In dev:
php artisan nightowl:agentIn production, supervise it the same way you supervise queue workers. The production deployment docs have copy-paste Supervisor and systemd configs.
Now hit any route in your Laravel app. Within a few seconds, the request should appear in the Requests tab of the NightOwl dashboard.
Step 6. Tune retention for the 0.5 GB free tier
Data stays in your PostgreSQL until you schedule nightowl:prune, which keeps NIGHTOWL_RETENTION_DAYS of raw telemetry (14 days by default). On a 0.5 GB Neon free tier, drop that to 2 days. Add this to your Laravel .env:
NIGHTOWL_RETENTION_DAYS=2
Then schedule the prune command in routes/console.php:
use Illuminate\Support\Facades\Schedule;
Schedule::command('nightowl:prune')->daily();
Or run manually: php artisan nightowl:prune. This deletes rows older than NIGHTOWL_RETENTION_DAYS across all 11 raw telemetry tables. It's a single retention value, with no per-table tuning. Rollups (the pre-aggregated tables behind the charts) keep their own window, 90 days by default through NIGHTOWL_ROLLUP_RETENTION_DAYS.
When to upgrade to Neon Launch
Four signals it's time to leave the free tier:
- You want monitoring that runs all month: on Free, the agent uses up the 100 CU-hours in about two weeks. Launch is usage-based ($0.106 per CU-hour) with no allowance to exhaust.
- Dashboard pages take more than a few seconds to load: small compute is the bottleneck, not NightOwl. Launch allows larger compute sizes than Free's 2 CU ceiling.
- Storage hits 80% of 0.5 GB even with 2-day retention: Launch bills storage at $0.35 per GB-month instead of capping it.
- You need 30+ day retention for incident post-mortems: at typical SaaS traffic, that's well past 0.5 GB.
Total stack at that point: $15 NightOwl Team plus Neon Launch usage. Compute awake all month at 0.25 CU works out to roughly $19, plus $0.35 per GB-month of storage, so about $34/month before storage. For what the same volume costs on per-event tools, see the Sentry comparison and the Datadog comparison.
Neon vs Supabase for NightOwl
Both work. Pick based on your usage shape:
- Neon if you want usage-based billing and branching, and you're ready for the Launch plan once you depend on it. On Free, the always-awake agent uses up the month's compute in about two weeks.
- Supabase if you want always-on free compute (free projects pause only after 7 days of inactivity, which a running agent prevents) and don't need branching. The free database is the same size (500 MB).