Synthetic Monitoring Setup 技能:用连续失败控制告警
EnglishClaude Code 安装步骤
- 从 GitHub 固定提交获取完整的 `plugins/performance/synthetic-monitoring-setup/skills/setting-up-synthetic-monitoring` 目录。
- 复制到目标项目的 `.claude/skills/`,确认 `.claude/skills/setting-up-synthetic-monitoring/SKILL.md`,再从项目根目录启动 Claude Code,输入 `/setting-up-synthetic-monitoring`。
中文摘要
用 Claude Code 给自己维护的网站定义定时探测,验证状态码、超时和连续失败触发条件,并保留恢复记录。
SKILL.md 中文导读
可复现示例
让 /catalog 先返回 200,随后连续三次返回 503,再恢复 200。以三次连续失败为阈值,并检查探测和恢复记录。工作步骤
- 为 /health 和 /catalog 选择请求方法、响应断言和超时。给每次探测保留起止时间及结果。
- 配置连续失败窗口和恢复条件。向本地测试记录模拟一次完整故障和恢复。
验收方法
第一次和第二次失败只增加计数。第三次产生告警事件,恢复后出现恢复记录。
GitHub 原文 · 更新日期
适用环境
准备自己的本地服务和定时探测工具。示例使用短周期及本地测试记录,无需真实通知渠道。
常见问题
每次单个探测失败就报警更好吗?
按服务目标选择合理阈值。短暂网络问题较常见时,连续失败条件能减少误报。
相关指南
相关推荐
groq-install-auth 技能
jeremylongshore/claude-code-plugins-plus-skills
anima-common-errors 技能
jeremylongshore/claude-code-plugins-plus-skills
apple-notes-hello-world 技能
jeremylongshore/claude-code-plugins-plus-skills
castai-hello-world 技能
jeremylongshore/claude-code-plugins-plus-skills
cohere-local-dev-loop 技能
jeremylongshore/claude-code-plugins-plus-skills
figma-security-basics 技能
jeremylongshore/claude-code-plugins-plus-skills