kasusa

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

  •  
  •   kasusa · Aug 26, 2025 · 1611 views
    This topic created in 303 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   ·   5610 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 02:34 · PVG 10:34 · LAX 19:34 · JFK 22:34
    ♥ Do have faith in what you're doing.