Start free trial
Start free trial Log in

14-day free trial. No credit card.

Set up NightOwl with Neon via the Vercel Marketplace

Point a Neon database from the Vercel Marketplace (formerly Vercel Postgres) at NightOwl in about 15 minutes.

  • Tutorial
  • About 15 minutes
  • 6 steps
  • Updated September 27, 2026

Can I run NightOwl on Vercel Postgres?

Vercel Postgres itself is discontinued: Vercel moved it to Neon in December 2024, and new databases come from the Neon integration on the Vercel Marketplace. NightOwl runs on that. Create the database from the Marketplace, copy DATABASE_URL_UNPOOLED (the unpooled string, because nightowl:partition needs a direct session), paste it into NightOwl. Setup is ~15 minutes. The free plan is Neon's: 0.5 GB of storage and 100 CU-hours a month. A running agent keeps the compute awake, so those hours run out after about two weeks and Neon suspends the compute until the next billing period. For always-on monitoring, use Neon's Launch plan or a different provider.

Updated

Heads up

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.
Three catches worth knowing up front

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 for nightowl:partition.
  • DATABASE_URL_UNPOOLED: direct connection. Use this for NightOwl.
  • PGHOST, PGHOST_UNPOOLED, PGUSER, PGDATABASE, PGPASSWORD and the legacy POSTGRES_* 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 -pooler suffix)
  • 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:

Terminal
composer require nightowl/agent

Add the same five DB connection values plus the two lines from the token banner to your Laravel .env:

.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:

Terminal
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:

Terminal
php artisan nightowl:agent

Hit 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:

.env
NIGHTOWL_RETENTION_DAYS=2

Schedule the prune in routes/console.php:

routes/console.phpphp
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.

Create your NightOwl account to get the agent token

Connect App takes your unpooled URL and shows the NIGHTOWL_TOKEN and NIGHTOWL_APP_ID your .env needs. Then run the three commands here to finish the install.

No credit card needed.

Terminal
composer require nightowl/agent
php artisan nightowl:install
php artisan nightowl:agent

Frequently asked questions

Anything else, write to support@usenightowl.com

What happened to Vercel Postgres?

Vercel Postgres is no longer available. In December 2024 Vercel moved existing Vercel Postgres databases to Neon, and new Postgres databases on Vercel come from Marketplace integrations. The Neon integration is the direct successor: Vercel provisions a Neon project for you, shows the connection details in its Storage tab, and bills it on your Vercel invoice. Everything that works on Neon (libpq, COPY, JSONB, partial indexes) works here, because it is Neon.

Should I use Neon through Vercel or go directly to Neon?

Use the Vercel Marketplace integration if you're already on Vercel and want one invoice: billing, env vars, and the database list in the same place. Sign up with Neon directly if your Laravel app isn't on Vercel and you have no other reason to involve it. The database, its plans and its limits are Neon's either way.

Will Neon's free compute hours last the whole month?

No. The agent's drain queries the database at least once a minute, even when your app is idle, so Neon's compute never scales to zero while the agent runs. At the smallest size (0.25 CU) a full month awake is about 180 CU-hours, against the 100 the free plan includes. Once they are used up, Neon suspends the compute until the next billing period. From then on the agent buffers telemetry locally until it reaches NIGHTOWL_MAX_PENDING_ROWS (100,000 rows by default) and rejects new telemetry after that, and the dashboard can't load data. For always-on monitoring, move the database to Neon's Launch plan or use a provider with always-on free compute such as Supabase or Aiven.

Why does the NightOwl dashboard feel slow on Neon's free plan?

Free compute is small. It autoscales from 0.25 CU up to 2 CU, and aggregations over a few days of telemetry can take a few seconds on the smallest size. This is the underlying Neon free plan, not NightOwl. Verify by running the same query in Neon's SQL Editor, where it's just as slow. The fix is a bigger compute size on the Launch plan.

Which connection string do I use: DATABASE_URL or DATABASE_URL_UNPOOLED?

Use DATABASE_URL_UNPOOLED. The drain runs each batch in one transaction, so it would also work through the pooled DATABASE_URL, but nightowl:partition needs a direct session. The unpooled string covers every NightOwl command.

Do I need a Vercel project to provision the database?

You create the database from the Vercel Marketplace, and connecting it to a Vercel project is a separate step (Storage → your database → Connect Project) that injects its env vars into that project's deployments. Your Laravel app doesn't run on Vercel, so NightOwl only needs the connection string from the database's page.

How much telemetry fits in the free allowance?

The free plan is Neon's: 0.5 GB of storage per project and 100 CU-hours of compute a month. That holds a few days of telemetry for a low-traffic Laravel app. NightOwl has one raw retention value, NIGHTOWL_RETENTION_DAYS, for all raw telemetry tables: set it to 2 days and schedule nightowl:prune. Here the compute allowance runs out before the storage does, because the agent keeps the compute awake (see above).

Does the agent burn through compute hours when the database is idle?

Yes. The drain touches the database at least once a minute, even when there is nothing to write, so the compute stays awake around the clock. That's why the free plan's 100 CU-hours last about two weeks. On Launch you pay $0.106 per CU-hour instead, roughly $19 a month at 0.25 CU running all month.

Flat pricing, whatever your traffic does

Every plan starts with a 14-day free trial. No credit card needed.

Hobby
$5 a month

One app for a side project. Issues and alerts, with a 14-day dashboard window.

Start my 14-day trial
TeamRecommended
$15 a month

Up to 3 apps and 5 people per team. Full history, the MCP server, data clearing and agent health.

Start my 14-day trial
Agency
$69 a month

Unlimited client apps and people, one overview of every app, and apps you can hand over.

Start my 14-day trial

Related guides

Related

Connect your Marketplace Neon database to NightOwl

Create an account and paste DATABASE_URL_UNPOOLED into Connect App, and your Laravel telemetry starts landing in your own database. No credit card needed.