Skip to content
/ mon Public template

Simple monitoring and alerting service using Workers and Telegram

Notifications You must be signed in to change notification settings

et0and/mon

Repository files navigation

Mon is a simple URL monitoring service built with plain Typescript and Cloudflare Workers. It checks configured endpoints and sends Telegram alerts when URLs become unreachable. The Worker is set to ping the configured URLs every 30 minutes via a cron schedule, but this can be adjusted to as short or long as you like in the wrangler.jsonc or via the Cloudflare dashboard.

The service state is tracked via Cloudflare's KV store to detect when services recover.

This isn't a very sophisticated monitoring system, but based on a simple script I wrote several months ago when I needed to put together a hack monitoring service for something I was building at work (spoiler: it was AWS rugpulling me lol).

There are similar serverless approaches people have taken, such as this one on Val.town running on Deno.

Development

bun install
bun run dev

Deployment

You will need Wrangler configured on your system.

bun run deploy

Type generation

Generate types based on Worker configuration:

bun run cf-typegen

About

Simple monitoring and alerting service using Workers and Telegram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published