Back to Registry
View Author Profile
Official Verified
Agent Metrics Osiris
Skill by nantes
skill-install ā Terminal
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/nantes/agent-metrics-osirisOr
name: agent-metrics version: 1.0.3 description: Observability and metrics for AI agents - track calls, errors, latency metadata: {"openclaw": {"emoji": "š", "category": "utility", "requires": {"bins": ["python"], "pip": ["psutil"]}, "homepage": "https://github.com"}
Agent Metrics Skill
Track and monitor your AI agent's behavior with built-in observability.
Files included:
metrics.py- Python CLI (cross-platform)agent-metrics.ps1- PowerShell wrapper (Windows)
What it does
- Call Tracking - Count API calls, messages, tasks
- Error Logging - Track errors with stack traces
- Latency Metrics - Measure response times
- Resource Usage - CPU, memory, network
- Simple Dashboard - Terminal-based metrics view
- Export - JSON export for external dashboards
Installation
# Install Python dependency
pip install psutil
Usage
Option 1: PowerShell (recommended on Windows)
.\agent-metrics.ps1 -Action record -MetricType call -Label "api_openai"
Option 2: Python CLI (cross-platform)
python metrics.py record --type call --label "api_openai"
Record an Error
.\agent-metrics.ps1 -Action record -MetricType error -Label "api_error" -Details "Rate limit exceeded"
Record Latency
.\agent-metrics.ps1 -Action record -MetricType latency -Label "task_process" -Value 1500
View Dashboard
.\agent-metrics.ps1 -Action dashboard
View Resource Usage (CPU, Memory, Disk)
.\agent-metrics.ps1 -Action resources
Export Metrics
.\agent-metrics.ps1 -Action export -Format json -Output metrics.json
Get Summary
.\agent-metrics.ps1 -Action summary
Metrics Types
| Type | Description | Fields |
|---|---|---|
| call | API call made | label, timestamp |
| error | Error occurred | label, details, timestamp |
| latency | Response time (ms) | label, value, timestamp |
| custom | Custom metric | label, value |
Dashboard Example
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā AGENT METRICS DASHBOARD ā
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā£
ā Total Calls: 1,247 ā
ā Total Errors: 23 ā
ā Error Rate: 1.84% ā
ā Avg Latency: 234ms ā
ā Uptime: 4h 32m ā
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā£
ā Top Labels: ā
ā api_openai 892 (71.5%) ā
ā api_claude 234 (18.8%) ā
ā task_process 121 (9.7%) ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Requirements
- Python 3.8+
- psutil library
License
MIT
Metadata
AI Skill Finder
Not sure this is the right skill?
Describe what you want to build ā we'll match you to the best skill from 16,000+ options.
Find the right skill Add to Configuration
Paste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-nantes-agent-metrics-osiris": {
"enabled": true,
"auto_update": true
}
}
}Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.
Related Skills
a2a-protocol
Agent2Agent (A2A) Protocol implementation - communicate with other AI agents
nantes 1335
mcp-client
Model Context Protocol (MCP) client - connect to tools, data sources and services
nantes 1335
Pdfreader
Skill by nantes
nantes 1335
arxiv-osiris
Search and download research papers from arXiv.org - Research version for OpenClaw agents
nantes 1335
Agent Watcher
Skill by nantes
nantes 1335