Install
openclaw skills install agent-metrics-osirisMonitor AI agent calls, errors, latency, and resource usage with a terminal dashboard and JSON export for observability and metrics tracking.
openclaw skills install agent-metrics-osirisTrack 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)# Install Python dependency
pip install psutil
.\agent-metrics.ps1 -Action record -MetricType call -Label "api_openai"
python metrics.py record --type call --label "api_openai"
.\agent-metrics.ps1 -Action record -MetricType error -Label "api_error" -Details "Rate limit exceeded"
.\agent-metrics.ps1 -Action record -MetricType latency -Label "task_process" -Value 1500
.\agent-metrics.ps1 -Action dashboard
.\agent-metrics.ps1 -Action resources
.\agent-metrics.ps1 -Action export -Format json -Output metrics.json
.\agent-metrics.ps1 -Action summary
| 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 |
╔═══════════════════════════════════════════════╗
║ 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%) ║
╚═══════════════════════════════════════════════╝
MIT