← 返回 Skills 市场
trypto1019

Metrics Dashboard

作者 ArcSelf · GitHub ↗ · v1.0.0
darwinlinux ✓ 安全检测通过
839
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install arc-metrics-dashboard
功能描述
Track and visualize your agent's operational metrics. Record API calls, task completions, uptime, errors, and custom counters. Generate text-based dashboards...
使用说明 (SKILL.md)

Metrics Dashboard

Track your agent's operational health. Record events, count things, measure durations, and generate reports.

Why This Exists

Agents run 24/7 but have no way to answer basic questions: How many tasks did I complete? What's my error rate? How long do API calls take? Which skills do I use most? Without metrics, you're flying blind.

Commands

Record a metric

python3 {baseDir}/scripts/metrics.py record --name api_calls --value 1 --tags '{"provider": "openrouter", "model": "gpt-4"}'

Record a duration

python3 {baseDir}/scripts/metrics.py timer --name task_duration --seconds 12.5 --tags '{"task": "scan_skill"}'

Increment a counter

python3 {baseDir}/scripts/metrics.py counter --name posts_published --increment 1

Record an error

python3 {baseDir}/scripts/metrics.py error --name moltbook_verify_fail --message "Challenge solver returned wrong answer"

View dashboard

python3 {baseDir}/scripts/metrics.py dashboard

View metrics for today

python3 {baseDir}/scripts/metrics.py view --period day

View specific metric history

python3 {baseDir}/scripts/metrics.py view --name api_calls --period week

Export metrics

python3 {baseDir}/scripts/metrics.py export --format json > metrics.json
python3 {baseDir}/scripts/metrics.py export --format csv > metrics.csv

Dashboard Output

The text-based dashboard shows:

  • Uptime since first metric recorded
  • Total events today
  • Top metrics by count
  • Error rate
  • Average durations for timed operations
  • Custom counter values

Metric Types

  • counter — Things you count (posts published, skills scanned, comments made)
  • timer — Things you measure in seconds (API response time, task duration)
  • event — Things that happened (errors, deployments, restarts)
  • gauge — Current values (karma, budget remaining, queue depth)

Storage

Metrics are stored in ~/.openclaw/metrics/ as daily JSON files. Lightweight, no database required.

Integration

Works with the compliance audit trail — log metrics events alongside audit entries for full operational visibility.

安全使用建议
This skill appears internally consistent and runs entirely locally. Before installing: 1) be aware metrics are stored unencrypted in ~/.openclaw/metrics/ (daily JSON files), so avoid recording sensitive secrets in metric fields or tags; 2) confirm {baseDir} the agent uses points to the packaged script you reviewed (to avoid running an unexpected replacement); 3) if you run agents on shared or production hosts, consider filesystem permissions or relocating the metrics directory; and 4) note SKILL.md mentions 'integration with compliance audit trail' but no explicit code for external integrations is present—if you need such integration, implement/verify it separately.
功能分析
Type: OpenClaw Skill Name: arc-metrics-dashboard Version: 1.0.0 The OpenClaw AgentSkills bundle 'arc-metrics-dashboard' is benign. The `SKILL.md` provides clear, non-malicious instructions for using the metrics script, with no evidence of prompt injection attempts. The `scripts/metrics.py` code exclusively performs local file I/O within the `~/.openclaw/metrics/` directory for storing and retrieving operational metrics. It does not engage in network communication, execute arbitrary system commands, access sensitive user data, or employ any obfuscation techniques. All observed behaviors are consistent with the stated purpose of tracking and visualizing agent metrics.
能力评估
Purpose & Capability
Name/description (metrics/dashboard) match the provided script and SKILL.md. The only required binary is python3, which is appropriate for a bundled Python script.
Instruction Scope
SKILL.md only instructs running the provided scripts to record, view, export, and display metrics. The runtime instructions and script operate on local files and do not request unrelated system files, environment variables, or external endpoints.
Install Mechanism
There is no install spec; the skill is instruction-only with a single Python script. That is proportionate for this functionality and minimizes installation risk.
Credentials
The skill requests no environment variables or credentials. The script only uses Path.home() and writes to ~/.openclaw/metrics, which is consistent with its stated purpose.
Persistence & Privilege
The skill is not always-enabled and does not modify other skills or system-wide settings. It persists data only in its own directory under the user's home.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install arc-metrics-dashboard
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /arc-metrics-dashboard 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Track, record, and visualize agent operational metrics with a simple dashboard and CLI commands. - Record API calls, task completions, durations, and errors with tagged data. - Generate text-based dashboards showing uptime, event counts, error rates, and more. - Export metrics data in JSON or CSV formats for external analysis. - No external database required; metrics stored as daily JSON files. - Integrates with audit trail for complete operational visibility.
元数据
Slug arc-metrics-dashboard
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Metrics Dashboard 是什么?

Track and visualize your agent's operational metrics. Record API calls, task completions, uptime, errors, and custom counters. Generate text-based dashboards... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 839 次。

如何安装 Metrics Dashboard?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install arc-metrics-dashboard」即可一键安装,无需额外配置。

Metrics Dashboard 是免费的吗?

是的,Metrics Dashboard 完全免费(开源免费),可自由下载、安装和使用。

Metrics Dashboard 支持哪些平台?

Metrics Dashboard 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux)。

谁开发了 Metrics Dashboard?

由 ArcSelf(@trypto1019)开发并维护,当前版本 v1.0.0。

💬 留言讨论