Shipped a Checkmate one-click template — the row written on every single probe tick
DEV Community

Shipped a Checkmate one-click template - the row written on every single probe tick

Checkmate is open-source uptime and infrastructure monitoring, and I kept wanting a baseline where I could click deploy and have a dashboard without standing up Postgres and a worker by hand. So I turned it into a one-click Railway template.

The probe loop

The trickiest spec detail was the probe loop. Checkmate schedules a worker that hits each monitor target on its interval and writes a row per check - status, latency, timestamp - so the uptime graph is never derived, it's just a query over those rows.

That's the thing that makes the dashboard fast to read and also the thing that makes the database grow monotonically forever unless you prune.

Storage and retention

Which brings me to what I had to surface honestly in the docs: a probe hitting a target every minute for a hundred endpoints is a hundred rows a minute, and the default retention keeps all of them. On Railway that bills as storage plus a DB you can't treat as append-only-and-forget.

I ended up documenting a cleanup job template as part of the folder rather than pretending it's free - https://github.com/INAPP-Mobile/checkmate has the template files if you want to run it yourself.

Setup note

Setup note: the PostgreSQL volume is the component to pin first; everything else is stateless.

Worth asking: how aggressively do other monitoring stacks compact probe history, and at what fidelity?

Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.