What you'll have at the end
A working NightOwl dashboard showing live Laravel telemetry, with all data stored in an Aiven-managed PostgreSQL service under your control. Total monthly cost: from $5 for NightOwl Hobby, $0 for the database.
Why Aiven free works for NightOwl
Three properties differentiate Aiven from the more popular options (Supabase, Neon, Neon via Vercel):
- Always-on compute with no hour allowance. Neon's free plan (also behind Vercel's Marketplace databases) counts compute hours, and a running agent uses them up in about two weeks. Aiven free runs continuously without that meter.
- Multi-cloud when you outgrow Free. On paid plans such as Startup you choose the cloud (AWS, GCP, Azure) and region. The Free Plan doesn't let you choose; Aiven places the service.
- 1 GB storage: twice Supabase (500 MB) or Neon (0.5 GB).
- Free-plan compute is small and always small. 1 CPU, 1 GB RAM, no autoscaling. Aggregations over a few days of telemetry can take a few seconds. This is Aiven's Free Plan, not NightOwl. Verify by running the same query in Aiven's own web SQL console; it'll be just as slow.
- Provisioning takes a few minutes. Aiven actually spins up real cloud infrastructure; expect 2-5 minutes from "create" to "available."
- Free Plan terms can shift. Aiven may power off a free service with no activity (a running agent keeps it active), and it has changed free-tier terms several times over the years. Verify current limits on the signup page before assuming this guide's specifics still hold; the setup flow is stable, the quotas are not.
Step 1. Sign up and start a Free Plan project
Head to aiven.io and create an account. Aiven groups services into projects: use the project you land in after signup, or create one for telemetry (e.g. "nightowl-telemetry"). The Free Plan itself is chosen per service, in the next step.
Step 2. Provision a PostgreSQL service
In the project, click Create service → PostgreSQL. Three things to know:
- Service plan: pick Free Plan (not Developer or Hobbyist, which are paid)
- Cloud provider: not selectable on Free. Aiven places the service; paid plans let you match your Laravel host's cloud
- Region: same; on a paid plan, pick the region your Laravel app runs in
Click Create service. Provisioning takes 2-5 minutes while Aiven spins up real cloud infrastructure on your behalf. You'll see the service status transition from Rebuilding → Running.
Step 3. Copy the Service URI
Once the service status shows Running, open it. The service overview page shows a Service URI field. This is the ready-to-use connection string with credentials and SSL parameters baked in.
Format: postgres://avnadmin:[password]@[hostname].aivencloud.com:[port]/defaultdb?sslmode=require. Copy it as-is.
Notice the sslmode=require at the end: Aiven enforces TLS on every connection. 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 5.
Step 4. Register the app in NightOwl
Sign in to the NightOwl dashboard. On the Apps page, click Connect App. Paste the Aiven Service URI into the Connection String field. It fills in the fields below it for you:
- Host: Aiven hostname (e.g.
pg-xxx.aivencloud.com) - Port: the port from the URI (Aiven uses non-standard ports like
12345, not 5432) - Database:
defaultdb(Aiven's default) - Username:
avnadmin - 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 over TLS, and the tables don't exist yet. That's expected; nightowl:install creates them in Step 5. Click Save. A banner shows two lines, NIGHTOWL_TOKEN and NIGHTOWL_APP_ID. Copy both now: the token is shown only once.
Step 5. Install the agent and verify telemetry
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=pg-xxx.aivencloud.com
NIGHTOWL_DB_PORT=12345
NIGHTOWL_DB_DATABASE=defaultdb
NIGHTOWL_DB_USERNAME=avnadmin
NIGHTOWL_DB_PASSWORD=[password]
NIGHTOWL_DB_SSLMODE=require
NIGHTOWL_TOKEN=[agent token from Step 4]
NIGHTOWL_APP_ID=[app id from Step 4]Then run the installer and start the agent:
php artisan nightowl:install
php artisan nightowl:agent nightowl:install publishes config/nightowl.php and runs schema migrations against your Aiven database. Hit any route in your Laravel app. Within a few seconds it appears in NightOwl's Requests tab. Aiven is always-on, so the latency you see here is your steady-state experience.
Step 6. Tune retention for the 1 GB Free Plan
Data stays in your PostgreSQL until you schedule nightowl:prune, which keeps NIGHTOWL_RETENTION_DAYS of raw telemetry (14 days by default). Aiven's 1 GB is double Supabase/Neon's free quota, so you can be slightly less aggressive than on those. Drop retention to 5 days. In your Laravel .env:
NIGHTOWL_RETENTION_DAYS=5
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.
Lock the service down (optional)
Aiven can restrict a service to a list of allowed IP addresses (its docs call these IP filters) from the service's settings. If you restrict it, remember the NightOwl hosted dashboard also reads from the database, so add the IP it connects from, 178.156.227.16/32 (listed in the NightOwl quickstart), alongside your Laravel host's. Aiven also offers private networking (VPC peering) on paid tiers if you want to skip public-IP allowlisting entirely.
While you're getting started, leave the service open and rely on the strong credentials Aiven generates. Add IP restrictions before you put anything operationally meaningful in the database.
When to upgrade to a paid Aiven plan
Three signals it's time to leave the Free Plan:
- Storage hits 80% of 1 GB even with 5-day retention. Developer ($5/mo) keeps the same compute and gives you 8 GB of storage.
- You need backups. Free and Developer have none. Hobbyist (from $12/mo) keeps a single backup; Startup (from $75/mo) keeps 2 days of backups. Startup is still a single node, so a standby node needs a higher plan.
- Dashboard pages take more than a few seconds to load. Small compute is the bottleneck, not NightOwl. Free, Developer and Hobbyist all run on 1 CPU and 1 GB RAM; Startup starts at 2 CPUs.
Total stack: $15 NightOwl Team + $5 Aiven Developer = $20/month for more storage, or $15 + $75 Aiven Startup = $90/month for bigger compute and backups.
Aiven vs Supabase vs Neon vs Vercel for NightOwl
- Aiven: always-on, the most free storage of these four (1 GB), no cloud or region choice on Free (paid plans pick AWS/GCP/Azure regions). Best for ops/DevOps audiences and apps that want free compute on all month.
- Supabase: always-on free compute, 500 MB, broad ecosystem. Good middle ground.
- Neon: usage-based billing, branching, 0.5 GB. A running agent uses up the free compute hours in about two weeks.
- Neon via the Vercel Marketplace: the same Neon, provisioned and billed through Vercel (Vercel Postgres itself is discontinued). Best when you're already on Vercel.