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 Neon database created through the Vercel Marketplace, under your control. Total monthly cost: from $5 for NightOwl Hobby, $0 for the database while you stay inside Neon's free limits.
Why Neon via Vercel makes sense (and when it doesn't)
Two reasons to create the database through Vercel instead of going to Neon directly:
- One billing surface: the Vercel-managed integration bills the database on your Vercel invoice, so there's no second vendor relationship.
- Familiar UI: the database shows up in the Vercel dashboard's Storage tab, next to everything else you run there.
- It's Neon, so the free compute hours run out mid-month. The agent's drain queries the database at least once a minute, so the compute never scales to zero. At 0.25 CU that's 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. See the Neon guide for the deep version.
- Small free compute and 0.5 GB of storage. Compute autoscales from 0.25 CU to 2 CU, so aggregations over a few days of telemetry can take a few seconds. This is Neon's free plan, not NightOwl. The same queries are just as slow in Neon's SQL Editor.
- The default DATABASE_URL is pooled. The drain works through the pooler, but
nightowl:partitionneeds a direct session, so useDATABASE_URL_UNPOOLED.
Step 1. Create a Neon database from the Vercel Marketplace
Open the Neon integration on the Vercel Marketplace and click Install. Choose Create New Neon Account (the Vercel-managed option, billed through Vercel), accept the terms, then pick a region and the Free plan.
Pick a region close to your Laravel app's server, so the agent's drain doesn't cross regions on every batch. Name the database (in Vercel, a "database" is a Neon project) and create it. You land on Vercel's Storage tab with the new database listed.
Step 2. Copy the unpooled connection string
Open the database from the Storage tab. Its page shows the connection details as environment variables:
DATABASE_URL: pooled (through Neon's PgBouncer). Works for the drain, but not fornightowl:partition.DATABASE_URL_UNPOOLED: direct connection. Use this for NightOwl.PGHOST,PGHOST_UNPOOLED,PGUSER,PGDATABASE,PGPASSWORDand the legacyPOSTGRES_*variables: the same details split up or under older names. Skip them.
Copy DATABASE_URL_UNPOOLED as-is. The format is postgresql://[user]:[password]@ep-xxx.region.aws.neon.tech/[db]?sslmode=require. The NightOwl dashboard ignores the sslmode part 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. On the Apps page, click Connect App. Paste DATABASE_URL_UNPOOLED into the Connection String field. It fills in the fields below it for you:
- Host: hostname (e.g.
ep-xxx-xxx.region.aws.neon.tech, no-poolersuffix) - Port:
5432 - Database:
neondb(or whatever name appears in the URI's path) - Username: the user from the URI
- Password: the password embedded in the URI
Give the app a name under App Name 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 same five DB connection values 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]
NIGHTOWL_DB_PASSWORD=[password]
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 your Neon database.
Step 5. Start the agent and verify telemetry
Run the agent:
php artisan nightowl:agentHit any route in your Laravel app. Within a few seconds it should appear in NightOwl's Requests tab.
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). Drop that to 2 days. In your Laravel .env:
NIGHTOWL_RETENTION_DAYS=2
Schedule the prune in routes/console.php:
use Illuminate\Support\Facades\Schedule;
Schedule::command('nightowl:prune')->daily(); nightowl:prune deletes rows older than the retention window 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
Three 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. Neon's Launch plan is usage-based ($0.106 per CU-hour), roughly $19 a month at 0.25 CU running all month, and with the Vercel-managed integration it's billed on your Vercel invoice.
- 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 want longer point-in-time recovery: Neon Free keeps 6 hours of restore history; Launch goes up to 7 days, billed per GB-month.
A Vercel plan upgrade doesn't change the database; the Neon plan does. If you're going to pay anyway, compare the Vercel-managed integration with a direct Neon account. The database is the same, so the difference is which invoice it lands on.
Compare: Neon via Vercel vs Neon vs Supabase vs Aiven
- Neon via the Vercel Marketplace: Neon, provisioned and billed through Vercel. Best when you're already on Vercel.
- Neon: same database, direct relationship. Better if you're not on Vercel.
- Supabase: always-on free compute with no hour allowance, 500 MB. Better if you want the free tier to last all month.
- Aiven: managed Postgres, 1 GB free, always-on (Aiven picks the cloud and region on Free). Better for ops/DevOps audiences.