Skip to content
Swap Meet

Free

No. 046Free

fleet-canary: a Telegram message only when a target flips

A Cloudflare Worker checks the URLs you list and records heartbeats from your machines, for checks that run from the edge. It sends a Telegram message only when a target flips between up and down.

by Lucas Cooper-Bey

About it

A note on every check is noise. fleet-canary is a Cloudflare Worker with a heartbeat script, example address targets and tests. Once deployed, it checks the addresses you list every five minutes, records heartbeats from your machines, and sends a Telegram message only when one flips between up and down. With no Cloudflare account and no Telegram bot, a local run still checks and records a heartbeat, and sends no message. Limits: The status page and GET /status do not check the shared secret, so anyone with the Worker's address can read the target states. A local run needs Bun, Node.js 22 or newer, and curl, and under Bun alone the server answers every request with 503. Deploying and getting alerts needs a Cloudflare account and a Telegram bot. A machine that has never sent a heartbeat stays unknown and does not raise a down alert. Example URL targets alert after 2 failures in a row, and a beat target uses a failure threshold of 1. Door 48 of 100 Doors.