✓ Verified 💻 Development ✓ Enhanced Data

Agent Metrics Osiris

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

Rating
3.8 (297 reviews)
Downloads
780 downloads
Version
1.0.0

Overview

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

Key Features

1

Call Tracking - Count API calls, messages, tasks

2

Error Logging - Track errors with stack traces

3

Latency Metrics - Measure response times

4

Resource Usage - CPU, memory, network

5

Simple Dashboard - Terminal-based metrics view

6

Export - JSON export for external dashboards

Complete Documentation

View Source →

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

powershell
# Install Python dependency
pip install psutil

Usage

Option 1: PowerShell (recommended on Windows)

powershell
.\agent-metrics.ps1 -Action record -MetricType call -Label "api_openai"

Option 2: Python CLI (cross-platform)

powershell
python metrics.py record --type call --label "api_openai"

Record an Error

powershell
.\agent-metrics.ps1 -Action record -MetricType error -Label "api_error" -Details "Rate limit exceeded"

Record Latency

powershell
.\agent-metrics.ps1 -Action record -MetricType latency -Label "task_process" -Value 1500

View Dashboard

powershell
.\agent-metrics.ps1 -Action dashboard

View Resource Usage (CPU, Memory, Disk)

powershell
.\agent-metrics.ps1 -Action resources

Export Metrics

powershell
.\agent-metrics.ps1 -Action export -Format json -Output metrics.json

Get Summary

powershell
.\agent-metrics.ps1 -Action summary

Metrics Types

TypeDescriptionFields
callAPI call madelabel, timestamp
errorError occurredlabel, details, timestamp
latencyResponse time (ms)label, value, timestamp
customCustom metriclabel, value

Dashboard Example

text
╔═══════════════════════════════════════════════╗
║           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

Installation

Terminal bash

openclaw install agent-metrics-osiris
    
Copied!

💻Code Examples

pip install psutil

pip-install-psutil.txt
## Usage

### Option 1: PowerShell (recommended on Windows)

.\agent-metrics.ps1 -Action summary

agent-metricsps1--action-summary.txt
## 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
example.txt
╔═══════════════════════════════════════════════╗
║           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%)                ║
╚═══════════════════════════════════════════════╝

Tags

#devops_and-cloud

Quick Info

Category Development
Model Claude 3.5
Complexity Multi-Agent
Author nantes
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install agent-metrics-osiris