V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
kasusa

分享一个我自用的超轻量级网站/API 延时监控方案

  •  
  •   kasusa · Aug 26, 2025 · 1500 views
    This topic created in 254 days ago, the information mentioned may be changed or developed.

    目标: 简单、高效地监控服务是否 200 OK ,并记录响应延时用于后续分析。

    核心功能:

    定时巡检:Crontab 定时运行 Bash 脚本。 日志记录到 log.txt:

    [2025-08-26 17:25:42] duration_ms=721 uri=https://b.cornradio.org/ is_200=true
    [2025-08-26 17:26:36] duration_ms=782 uri=https://b.cornradio.org/ is_200=true
    

    可视化分析: 带了一个 index.html ,导入 log.txt 即可在浏览器看延时趋势图和状态统计。

    项目地址。https://github.com/cornradio/req-time-loger

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4173 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 05:08 · PVG 13:08 · LAX 22:08 · JFK 01:08
    ♥ Do have faith in what you're doing.