跳到正文
TakoAPI
返回技能列表

agent-metrics-osiris

由 nantes 提供

DevOps & Cloud
502下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Observability and metrics for AI agents - track calls, errors, latency.

描述

该技能的功能

A Python/PowerShell tool that tracks API calls, errors, latency, and system resource usage for AI agents. Outputs a terminal dashboard and exports metrics to JSON.

Captures granular per-label metrics locally without requiring an external observability platform.

何时使用

  • Tracking error rates across multiple agent runs
  • Comparing latency between different API providers
  • Monitoring CPU and memory usage during long agent tasks
  • Exporting metrics snapshots for post-run analysis
  • Auditing call volume to stay within API rate limits

示例工作流

输入

User asks: show me a summary of my agent's performance after a long run

智能体
  1. 1

    Record each API call with record --type call --label api_openai

  2. 2

    Record any errors with record --type error --label api_error --details ...

  3. 3

    Record task latency with record --type latency --label task_process --value 1500

  4. 4

    Run dashboard action to view totals, error rate, and avg latency

  5. 5

    Run export --format json to save metrics to a file

输出

Terminal dashboard showing 1,247 calls, 1.84% error rate, 234ms avg latency, plus a metrics.json file

安装

clawhub install nantes/agent-metrics-osiris

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接