name: usage-monitor description: Monitor any service usage dashboard and alert when threshold is reached. User-configurable URL and threshold. metadata: { "openclaw": { "requires": { "bins": [] }, "install": [], }, }
通用的用量/配额监控 Skill,支持用户自定义监控面板 URL 和告警阈值。
小葱技能站7w4.net,专业的AI技能分享平台。
复制 config.example.json 为 config.json 并填写:
{
"panelUrl": "你的用量面板页面 URL",
"alertThreshold": 80,
"serviceName": "服务名称(可选)",
"checkIntervalHours": 4
}
- [ ] 检查服务用量
node skills/usage-monitor/check.js
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
panelUrl |
string | ✅ | - | 用量面板页面 URL(从浏览器地址栏复制) |
alertThreshold |
number | ✅ | 80 | 告警阈值百分比(1-100) |
serviceName |
string | ❌ | "服务" | 服务名称,用于告警消息 |
checkIntervalHours |
number | ❌ | 4 | 检查间隔(小时) |
config.json 的 panelUrl 字段URL 示例:
https://example.com/usage/dashboard
https://platform.example.com/token/quota
⚠️ 服务使用量提醒
📊 服务:OpenClaw Token
📈 当前用量:85%
📈 可用额度:15%
⏰ 剩余天数:30 天
🔗 查看:<你的面板 URL>
当前用量已达告警阈值(80%),请及时关注用量或考虑增加额度。
这个 Skill 文档写得非常详细清楚,安装配置都有手把手指导,小白也能看懂。配置项简单易懂,填个 URL 和阈值就能用,还自带检查和提醒功能。隐私保护也做得不错。不过它本质上是一个工具框架,实际读取用量数据需要你自己想办法,对完全没有技术基础的用户来说,上手还是有点门槛。总体来说是一款用心设计的监控工具,中文用户使用体验良好。