Start free trial
Start free trial Log in

14-day free trial. No credit card.

Set up NightOwl with a free Supabase Postgres

Stand up Laravel monitoring on a $0 Supabase database in about 15 minutes.

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

Can I run NightOwl on a free Supabase Postgres database?

Yes. Supabase's free 500 MB Postgres database holds a few days of NightOwl telemetry for a low-volume Laravel app. Use the session pooler connection string (port 5432, reachable over IPv4), set retention to 2 days with pruning scheduled, and the database stays under the free-tier limit. Total setup time is about 15 minutes: create the Supabase project, copy the connection string, paste it into NightOwl, install the agent, run it.

Updated

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 Supabase Postgres database under your control. Total monthly cost: from $5 for NightOwl Hobby, $0 for the database.

Why Supabase free tier works for NightOwl

Three properties make Supabase a clean fit for NightOwl's BYOD Postgres model:

  • Real PostgreSQL 15+: not a Postgres-flavored layer. NightOwl uses native COPY, JSONB, partial indexes; Supabase supports all of it.
  • 500 MB free database: enough for a few days of telemetry at small-SaaS traffic with retention pruning.
  • IPv4 session pooler: works from any Laravel host, including older Forge/Hetzner boxes that don't speak IPv6. (The direct connection is IPv6-only unless you buy the IPv4 add-on.)
Two catches worth knowing up front

Step 1. Create a free Supabase project

Head to supabase.com, sign in (GitHub or email), and click New project. Pick the region closest to your Laravel app's server. Same-region keeps the agent's drain from crossing regions on every batch.

Set a strong database password and save it somewhere. Supabase doesn't show it again. Click Create new project. Provisioning takes about 2 minutes.

Step 2. Copy the session pooler connection string

Once the project is ready, click Connect at the top of the project dashboard. The panel lists three connection types: Direct connection, Transaction pooler, Session pooler.

Use the Session pooler. The drain runs each batch in one transaction, so it would work through the transaction pooler too, but nightowl:partition needs a direct session, and the session pooler gives you one. It's also reachable over IPv4, which the direct connection isn't unless you buy the IPv4 add-on.

Paste your password into the placeholder if Supabase shows [YOUR-PASSWORD]. Keep this URI handy for the next step.

Step 3. Register the app in NightOwl

Sign in to the NightOwl dashboard (or start a free trial if you haven't yet). On the Apps page, click Connect App. Paste the Supabase session-pooler URI (with your password filled in) into the Connection String field. It fills in the fields below it for you:

  • Host: the hostname (e.g. aws-0-eu-west-3.pooler.supabase.com)
  • Port: 5432 (session pooler)
  • Database: postgres (Supabase's default DB name)
  • Username: postgres.[project-ref]
  • Password: the password you set in Step 1

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. You'll add them to your Laravel .env next.

Step 4. Install the NightOwl agent in your Laravel app

In your Laravel project root:

Terminal
composer require nightowl/agent

Add the database connection details (same five values you entered in Step 3) plus the two lines from the token banner to your Laravel .env:

.env
NIGHTOWL_DB_HOST=aws-0-eu-west-3.pooler.supabase.com
NIGHTOWL_DB_PORT=5432
NIGHTOWL_DB_DATABASE=postgres
NIGHTOWL_DB_USERNAME=postgres.[project-ref]
NIGHTOWL_DB_PASSWORD=[your 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 the nightowl connection, creating all nightowl_* tables in your Supabase database. The migrations run from your Laravel app, not from the NightOwl dashboard.

Step 5. Start the agent and verify telemetry

Run the agent process. In dev:

Terminal
php artisan nightowl:agent

In production, supervise it the same way you supervise queue workers: Supervisor, systemd, or your platform's worker config. Forge users can add it as a daemon; the production deployment docs have copy-paste configs.

Now hit any route in your Laravel app. Within a few seconds, you should see the request appear in the Requests tab of the NightOwl dashboard.

Step 6. Tune retention for the 500 MB 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 500 MB Supabase free tier, drop that to 2 days. Add this to your Laravel .env:

.env
NIGHTOWL_RETENTION_DAYS=2

Then schedule the prune command in routes/console.php so old rows get cleaned up automatically:

routes/console.phpphp
use Illuminate\Support\Facades\Schedule;

Schedule::command('nightowl:prune')->daily();

Or run it manually whenever you want to free space: php artisan nightowl:prune.

nightowl:prune deletes rows older than NIGHTOWL_RETENTION_DAYS across all 11 raw telemetry tables (requests, queries, exceptions, jobs, scheduled tasks, mail, notifications, cache events, outgoing requests, commands, logs). 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 Supabase Pro

Four signals it's time to leave the free tier:

  • Dashboard pages take more than a few seconds to load: shared compute is the bottleneck, not NightOwl. Pro includes Micro compute (shared CPU, 1 GB RAM, double the free plan's memory), and larger compute sizes are paid add-ons on top.
  • Database hits 80% of 500 MB even with 2-day retention: you're past low-volume territory; Pro at $25/mo gives you 8 GB and real backups.
  • You need 30+ day retention for incident post-mortems: at typical SaaS traffic, that's well past 500 MB.
  • You want point-in-time recovery: free tier has none. On Pro, PITR is a paid add-on (from $100/mo).

Total stack at that point: $15 NightOwl Team + $25 Supabase Pro = $40/month, with 8 GB of database storage and no per-event metering. For what the same volume costs on per-event tools, see the Sentry comparison and the Datadog comparison.

Create your NightOwl account to get the agent token

Connect App takes your Supabase URI 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

Does NightOwl actually run on a free Supabase Postgres?

Yes. NightOwl writes telemetry to any PostgreSQL 14+ database: Supabase, Neon, Railway, Fly Postgres, or a PostgreSQL server you run. Free Supabase gives you a 500 MB Postgres database, which holds a few days of telemetry for a low-volume Laravel app. Past that, you set retention to one or two days and schedule pruning, or upgrade to Supabase Pro for 8 GB.

Why does the NightOwl dashboard feel slow on Supabase free?

It's the database, not NightOwl. Supabase free projects run on shared CPU with 500 MB of RAM, so aggregations over a few days of telemetry can take a few seconds. NightOwl's queries and indexes are the same regardless of where you host. If the dashboard feels sluggish once you have real telemetry volume, that's the signal to give Supabase more compute, not to switch monitoring tools. Pro ($25/mo) includes Micro compute (shared CPU, 1 GB RAM); larger compute sizes are paid add-ons. You can verify the bottleneck in Supabase's own SQL editor. The same queries will be just as slow there.

Will the free tier auto-pause break my monitoring?

Supabase pauses free projects after 7 days with zero database activity. Because NightOwl is constantly writing telemetry, the database is never idle, so auto-pause does not trigger as long as the agent is draining. The risk is only there if you stop the agent for a week.

Should I use the direct connection or the connection pooler?

Use the session pooler (port 5432 on the pooler hostname) or the direct connection. The drain runs each batch in one transaction, so it also works through the transaction pooler (port 6543), but nightowl:partition needs a direct session, which the session pooler and the direct connection both give you. The session pooler is reachable over IPv4; the direct connection is IPv6-only unless you buy Supabase's IPv4 add-on.

How much telemetry can I store in 500 MB?

A few days at low Laravel SaaS traffic, depending on volume. Heavy traffic shortens that. Set NIGHTOWL_RETENTION_DAYS to 2 on the free tier and schedule nightowl:prune: old rows are only deleted once that command runs. Rollups (the pre-aggregated tables behind the charts) keep their own window, 90 days by default through NIGHTOWL_ROLLUP_RETENTION_DAYS. If you need 30+ day retention, Supabase Pro at $25/mo gives you 8 GB.

Is my data exposed to NightOwl?

NightOwl's BYOD model means telemetry is stored in your Supabase project and is not mirrored to NightOwl servers. The agent installed in your Laravel app writes directly to your database. The hosted dashboard reads on demand using the credentials you provide; the password is encrypted at rest. A daily job also connects to read your auto-resolve setting and, if you turned auto-resolve on, resolves issues that have gone quiet.

Can I use the same Supabase project for my Laravel app data and NightOwl telemetry?

Technically yes. NightOwl's tables are prefixed nightowl_ so they won't collide. But for a free tier with 500 MB, you'll burn through the limit faster sharing. We recommend a dedicated Supabase project for NightOwl telemetry (the free plan allows two active projects).

What happens if my Supabase database goes offline?

The agent buffers telemetry locally in a SQLite WAL file and retries the drain. The buffer holds up to NIGHTOWL_MAX_PENDING_ROWS rows (100,000 by default). Past that limit the agent rejects new telemetry until the database is back, so how long an outage you can ride out depends on your traffic.

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 Supabase database to NightOwl

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