Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I Stopped Paying $49/Month for Uptime Monitoring — A GitHub Actions Cron Job Watches 12 Sites for $0

说明与用途

作者用免费的 GitHub Actions cron 任务替代付费的停机监控服务,每5分钟检查12个网站,出现故障时创建 issue。8个月内未漏掉任何停机,成本为0美元,使用了2000免费分钟中的520分钟。

问题

Need inexpensive, reliable uptime monitoring for 12 sites with 5‑minute checks and email alerts.

结果

Zero cost uptime monitoring for 12 sites, 5‑minute granularity, no missed outages, ~3 false positives/month, 520 minutes/month used out of 2000 free minutes.

工作流

  • Create .github/workflows/uptime.yml with schedule cron every 5 minutes
  • Define matrix of 12 site URLs
  • Run curl to get HTTP status code with timeout
  • If status not 200, use actions/github-script to create issue titled "DOWN: <site>" with body containing HTTP code and timestamp
  • Receive issue notifications via email and GitHub app
  • Manually close issue to log recovery

证据

8‑month cost $392 for SaaS vs $0 for GHA

来源

Failure opens a GitHub issue → issue notifications hit my email and phone via the GitHub app

来源

  • 记录日期: 2026-09-19T21:15:27.381Z