Start free trial
Start free trial Log in

14-day free trial. No credit card.

Set up NightOwl with free Aiven Postgres

Connect NightOwl to Aiven's always-on free PostgreSQL plan in about 15 minutes.

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

Can I run NightOwl on a free Aiven Postgres service?

Yes. Aiven's Free Plan provisions a single-node PostgreSQL service with 1 GB of storage (Aiven picks the cloud and region on Free). NightOwl talks to it over standard libpq with TLS required. Setup is about 15 minutes: create an Aiven account, provision a Free Plan PostgreSQL service, copy the Service URI, paste into NightOwl, install the agent. Aiven free is always-on with no compute-hour allowance to run out, at the cost of consistently small compute.

Updated

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

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:

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

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

.env
NIGHTOWL_RETENTION_DAYS=5

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.

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.

Create your NightOwl account to get the agent token

Connect App takes your Aiven Service 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 Aiven's free plan actually run NightOwl?

Yes. Aiven's Free Plan provisions a real, single-node PostgreSQL service with 1 CPU, 1 GB of RAM and 1 GB of storage, on always-on compute. On Free you can't choose the cloud or region; Aiven places the service. NightOwl writes telemetry to it over a standard libpq connection, the same as any managed Postgres. Setup is about 15 minutes including provisioning wait.

Why does the NightOwl dashboard feel slow on Aiven free?

Aiven's Free Plan runs on a single small node (1 CPU, 1 GB RAM) with no read replica and no autoscaling. Aggregations over a few days of telemetry can take a few seconds. Compute doesn't scale to zero, so there's no hour allowance to run out, but it is consistently small. This is Aiven's Free Plan, not NightOwl. Verify by running the same query in Aiven's web SQL console; it'll be just as slow there. The Developer ($5/mo) and Hobbyist (from $12/mo) plans keep the same 1 CPU and 1 GB RAM; bigger compute starts with the Startup plan (from $75/mo, 2 or more CPUs).

What's the SSL situation on Aiven?

Aiven enforces TLS on every connection, and its Service URI ends with ?sslmode=require. The NightOwl dashboard ignores that part of the URI and negotiates TLS on its own. For the agent, set NIGHTOWL_DB_SSLMODE=require in your .env: it encrypts the connection but doesn't check the server certificate. To also verify the certificate, download the CA certificate from the service overview page, set NIGHTOWL_DB_SSLMODE=verify-ca, and point the PGSSLROOTCERT environment variable at the CA file (libpq reads it). NightOwl has no separate sslrootcert setting.

Do I need to allowlist IPs for Aiven?

Optional but recommended for production. Aiven services are accessible from anywhere with valid credentials over TLS by default. Aiven's IP filter setting on the service lets you restrict access to your Laravel host's IP. If you do, also add the IP NightOwl's hosted dashboard connects from (it reads the database for the UI): 178.156.227.16/32, listed in the NightOwl quickstart docs. Aiven's paid tiers also offer VPC peering if you want to skip public-IP allowlisting entirely.

How does Aiven compare to Supabase, Neon, and Vercel for NightOwl?

Aiven targets a different audience: ops/DevOps folks who care about multi-cloud strategy and predictable always-on compute. Supabase and Neon focus on developer experience, and Neon on usage-based billing. For NightOwl specifically, the differences are: Aiven free is always-on with no compute-hour allowance (Neon's free plan runs out in about two weeks under a running agent), and it has 1 GB of storage (twice Neon/Supabase), but you can't choose the cloud or region on Free, and inactive free services may be powered off. Pick Aiven if you're already on Aiven for other things, or you want free compute that stays on all month.

How much telemetry fits in 1 GB?

About twice what the 0.5 GB free tiers on Neon and Supabase hold: several days for a low-volume Laravel app, less with heavy traffic. NightOwl has one raw retention value, NIGHTOWL_RETENTION_DAYS, for all raw telemetry tables: set it to 3 to 5 days on the free tier and schedule nightowl:prune. 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 or higher traffic, the Developer plan ($5/mo) gives you 8 GB of storage.

What's Aiven's free plan time limit?

Aiven says free services have no time limit, but it may power off a free service that shows no activity (after notifying you). A running NightOwl agent writes continuously, so the service stays active while the agent runs. Aiven's free-tier terms have shifted over the years, so check Aiven's pricing page before committing.

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 Aiven Postgres to NightOwl

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