Anything else you run

Not everything lives on an account Overlook connects to. Anything with an address, an API or a database can still be watched, and your own code can send Overlook whatever it knows. Add these to a project from its page (Attach) or from Settings → Projects.

Uptime

Requests a URL every minute: up or down, latency, TLS certificate and domain registration expiry.

URL
Required.
Method
Default: GET.
Expected status
Comma-separated codes or classes, e.g. 200 or 2xx,301. Default: 2xx,3xx.
Must contain
Text only the working page contains, e.g. a heading or "ok":true. Without it, any answer that isn't an error counts as up, error pages included. Optional.
Slow after (ms)
Answers slower than this count as degraded. Default: 2000.
Timeout (ms)
Default: 10000.
  • Probes come from one region (iad1); a regional outage elsewhere won't show.
  • Probing an app that sleeps when idle (e.g. a Fly machine with auto-stop) keeps it awake.
  • Domain expiry comes from the registry over RDAP. TLDs without an RDAP service (.me, .io, .co) and hosts on a platform's domain (*.vercel.app, *.fly.dev, *.github.io, which the platform renews) get no reading.

JSON endpoint

Reads any HTTP API that answers JSON: conditions on its values become health, numbers become charts, lists become resources.

URL
Required.
Format
json: any JSON, read with the lines below. overlook: an @overlook/client stats handler, signed with the push key. Default: json.
Method
Default: GET.
What to read
One per line. name | path | condition is a health component, down while the condition holds (> >= < <= take a number; = and != also take "text", true, false or null). name | path is a number to chart. Paths: data.status, items[0].ok, /data/status; .length counts a list. # starts a comment. Optional.
Resources
Optional. A list in the answer, one per line: kind | path to the list | name field | state field. States like running, ok or failed color each one. Optional.
Headers
Optional. Name: value per line, sent as written. Put anything secret in Auth header below instead. Optional.
Body
POST only: sent as written, as application/json when it is JSON. Optional.
Check every (minutes)
Default: 5.
Auth header
Optional. One header, Name: value, stored sealed: Authorization: Bearer …, X-Api-Key: … Optional.
Bearer token
Optional, the short form of the above: sent as Authorization: Bearer …. Optional.
Push key
overlook format only: the project's push key (the same one its client sends events with). Optional.
  • JSON only, at most 1 MB, within 10 seconds, from one region (iad1), at a public address.
  • Counters are read as today's total (UTC); an endpoint reporting all-time totals should use gauges such as users.total.
  • Each reading is the value at that moment: a rate needs the endpoint to report it.

Postgres query

Counts users and other numbers straight from an app's own database with read-only SQL, and alerts when a check's number crosses its threshold.

Total users
One row with a column named value, e.g. select count(*) as value from users. Optional.
Sign-ups per day
Rows of day (a date) and value. Optional $1 is the start of the window to read, e.g. where created_at >= $1 group by 1. Optional.
Sign-ins per day
Rows of day and value, like sign-ups. Optional $1 is the window start. Optional.
Custom metric name
Lowercase, e.g. orders or active_subscriptions. With spend, cost or usd in it, it shows as dollars. Optional.
Custom metric
One row with a column named value; recorded as a gauge. Optional.
Checks
One per line: name | SQL returning one row with a numeric column named value | condition (> >= < <= = != and a number). Down while the condition holds, which alerts. # starts a comment. Optional.
TLS
require unless the database is on a private network. Default: require.
Connection string
Use a role that can only SELECT the tables these queries read.
  • Postgres only (no MySQL or SQLite).
  • The database must accept connections from Vercel's network (iad1), at a public address: Overlook never connects inside a private network.
  • Daily queries are trusted to return one row per day; days they leave out are left blank, not zero.
  • Checks run every 5 minutes, one after another, within 45 s for them all.

Upstash Redis

Store health and the user count for apps that keep accounts in Redis (Vercel KV).

REST URL
KV_REST_API_URL in the app's environment.
Count users with
LLEN, SCARD, ZCARD, HLEN or GET a key, DBSIZE, or COUNT a key pattern. Optional.
Read-only token
KV_REST_API_READ_ONLY_TOKEN: it can't change anything.
  • Sign-ups are derived from the user count rising; deleted accounts can hide a sign-up in the same interval.
  • Sign-ins aren't visible: apps don't record them in a countable way.
  • Upstash usage and cost need the Upstash account API, not the store token.

Heartbeat

A cron job, backup or worker calls its ping URL when it runs; Overlook alerts when a beat is missed or reports a failure.

Name
What runs on the schedule. It names the health component.
Runs every (minutes)
How often the job calls its ping URL: 5 for every five minutes, 1440 for daily.
Grace (minutes)
How late a beat may be before it counts as missed. Raise it for a job whose run time varies. Default: 5.
Key hash
SHA-256 of the ping URL's key. Minted by Overlook.
Minted at
When the ping URL was made: a job that never beats is missed from then.
  • A beat says the job ran, not that it did its work: report failures to /fail with a message.
  • Beats are judged once a minute, so a missed beat shows up to a minute after its grace ends.
  • The URL is shown once. Lost, it can be replaced with Rotate key; the old one stops working.

Status page

A vendor's public status page: its components as health, its incidents as events, so an outage reads as theirs, not yours.

Status page
The page's address. Statuspage pages (most vendors' /api/v2/summary.json, incident.io's too), Better Stack and Instatus are read.
Only these components
Optional, one per line: a component's name as the page shows it, "Group / Name", or a group's name for all of it. Empty: only the page's overall state, which names any component in trouble. Optional.
  • The vendor's own word, read every 5 minutes: it can lag what you see, and it never counts toward the project's uptime.
  • A vendor's outage makes the project need attention, not read as down; an uptime probe says whether yours is.
  • Statuspage (and incident.io), Better Stack and Instatus pages only. Others: a JSON endpoint on their status API.

TCP port

Whether a host answers on a port (a database, a mail or game server), how fast, and its TLS certificate's expiry.

Host
Required.
Port
Required.
Speaks TLS
The port starts with a TLS handshake (443, 465, 993, 8443…): it's timed too, and the certificate's expiry is watched. Not for STARTTLS (SMTP on 587, Postgres on 5432). Default: off.
Slow after (ms)
Answers slower than this count as degraded. Default: 1000.
Timeout (ms)
Default: 5000.
  • Connecting proves something listens, not that it works: a protocol's own health (a query, a login) needs its tie-in.
  • Probes come from one region (iad1); a firewall that only lets your servers in will read as down.
  • TLS from the first byte only; a port that upgrades with STARTTLS reads as a failed handshake.

DNS record

Whether a name still answers with the record it should: an A record's address, an MX host, a TXT verification.

Name
Required.
Record type
Default: A.
Expected value
What it should say, one value per line (or comma-separated): every one must be there. An IP for A and AAAA, a host for CNAME, NS and MX ("10 mx.example.com" checks the priority too), text the TXT record contains. Empty: any answer reads as up. Optional.
  • What public resolvers see, which can lag a change by the record's TTL; private zones aren't visible.
  • Read every 5 minutes; a domain's registration and certificate are the uptime probe's to watch.

Metrics endpoint

Scrapes a Prometheus or OpenMetrics /metrics endpoint: thresholds on series become health, series become charts.

URL
Required.
What to read
One per line. name | series | condition is a health component, down while the condition holds (> >= < <= = != and a number). name | series is a number to chart. A series is a metric with optional labels, e.g. up{job="api"}; = != =~ !~ match labels. Several series need sum( ), min( ), max( ) or avg( ); count( ) counts them. # starts a comment. Optional.
Headers
Optional. Name: value per line, sent as written. Put anything secret in Auth header below instead. Optional.
Check every (minutes)
Default: 5.
Auth header
Optional. One header, Name: value, stored sealed: Authorization: Bearer …, X-Api-Key: … Optional.
Bearer token
Optional, the short form of the above: sent as Authorization: Bearer …. Optional.
  • Each reading is the value at that moment: a counter (…_total) is charted as it grows, not as a rate.
  • At most 4 MB within 10 seconds: point it at an app's own /metrics or a federation endpoint with match[], not a whole server.
  • From one region (iad1), every 1 to 60 minutes; it's no replacement for Prometheus, but it watches what Prometheus would.

Your own code

Attach an Ingest source to a project: Overlook shows its push key once. Then your server sends sign-ups, errors, numbers and its own health checks. In JavaScript and TypeScript, the client does the batching and retries:

import { createOverlook } from "@overlook/client";

export const overlook = createOverlook({ key: process.env.OVERLOOK_KEY });

overlook.signup(user.id);                  // counted as a sign-up
overlook.error(err, { route: "/api/x" });  // an error: alerts you, if you choose
overlook.track("export.finished", { props: { pages: 12 } });
overlook.metric("queue.depth", 42);        // a number to chart
overlook.check("Queue", "up");             // a component of its health

From any other language, post a JSON body to https://overlook.technology/api/ingest, signed with the key: three headers, x-overlook-key, x-overlook-timestamp and x-overlook-signature (an HMAC-SHA256 of the timestamp and the body). Set Expect a push every on the source and Overlook alerts you when your code goes quiet.

On serverless platforms, pass waitUntil (from @vercel/functions) to the client, or call flush() before returning, so nothing waiting is lost when the function stops. Errors your code reports raise an alert of their own: Errors your code reports.

Next: Alerts and how you hear →