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.)
- Free tier compute is shared and slow. Supabase free projects run on shared CPU with 500 MB of RAM. Dashboard queries that are quick on bigger compute can take a few seconds on the free tier, especially aggregations over the last 24 hours of requests. This is the database, not NightOwl. If pages feel slow once you have a few days of telemetry, that's the signal to upgrade Supabase, not to switch tools.
- Auto-pause after 7 idle days. Because NightOwl writes continuously, 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.
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:
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:
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:
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:
php artisan nightowl:agentIn 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:
NIGHTOWL_RETENTION_DAYS=2
Then schedule the prune command in routes/console.php so old rows get cleaned up automatically:
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.