usage-monitor

Monitor any service usage dashboard and alert when threshold is reached. User-configurable URL and threshold.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "usage-monitor" with this command: npx skills add strongking666/usage-monitor

Usage Monitor - 通用用量监控 Skill

通用的用量/配额监控 Skill,支持用户自定义监控面板 URL 和告警阈值。

特性

  • 🔗 自定义 URL - 支持任意用量/配额面板页面 URL(如:OpenClaw Token 面板、云服务用量页等)
  • 🎯 自定义阈值 - 支持设置任意告警百分比(1-100)
  • 📊 多维度监控 - 支持多个时间维度的用量数据
  • 🔔 主动提醒 - 达到阈值时自动发送消息

快速开始

步骤 1:配置用户参数

复制 config.example.jsonconfig.json 并填写:

{
  "panelUrl": "你的用量面板页面 URL",
  "alertThreshold": 80,
  "serviceName": "服务名称(可选)",
  "checkIntervalHours": 4
}

步骤 2:添加到 HEARTBEAT.md

- [ ] 检查服务用量

步骤 3:运行

node skills/usage-monitor/check.js

配置参数说明

参数类型必填默认值说明
panelUrlstring-用量面板页面 URL(从浏览器地址栏复制)
alertThresholdnumber80告警阈值百分比(1-100)
serviceNamestring"服务"服务名称,用于告警消息
checkIntervalHoursnumber4检查间隔(小时)

URL 获取方法

  1. 打开你的用量/配额面板页面(如:OpenClaw Token 数量面板、云服务用量页等)
  2. 复制浏览器地址栏的完整 URL
  3. 粘贴到 config.jsonpanelUrl 字段

URL 示例:

https://example.com/usage/dashboard
https://platform.example.com/token/quota

告警消息示例

⚠️ 服务使用量提醒

📊 服务:OpenClaw Token
📈 当前用量:85%
📈 可用额度:15%
⏰ 剩余天数:30 天
🔗 查看:<你的面板 URL>

当前用量已达告警阈值(80%),请及时关注用量或考虑增加额度。

注意事项

  1. URL 必须是完整的 HTTP/HTTPS 地址
  2. 阈值范围 1-100
  3. 浏览器自动化需要保持登录状态(如需要)
  4. 首次使用需手动访问一次页面完成登录(如需要)

适用场景

  • ✅ OpenClaw Token 数量监控
  • ✅ 云服务用量监控(阿里云、AWS、腾讯云等)
  • ✅ API 调用配额监控
  • ✅ 资源包用量监控
  • ✅ 任何有用量/配额面板的场景

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Weibo Hot Search API

Call GET /api/weibo/hot-search/v1 for Weibo Hot Search through JustOneAPI.

Registry SourceRecently Updated
General

Weibo Keyword Search API

Call GET /api/weibo/search-all/v2 for Weibo Keyword Search through JustOneAPI with endDay, endHour, q, startDay, and startHour.

Registry SourceRecently Updated
General

Weibo Search User Published Posts API

Call GET /api/weibo/search-profile/v1 for Weibo Search User Published Posts through JustOneAPI with q and uid.

Registry SourceRecently Updated
General

Weibo Post Details API

Call GET /api/weibo/get-weibo-detail/v1 for Weibo Post Details through JustOneAPI with id.

Registry SourceRecently Updated