AgentMetrics observability plugin for Hermes agents
Project description
agentmetrics-hermes
AgentMetrics observability plugin for Hermes agents. Auto-discovered via the hermes_agent.plugins entry-point — no code changes needed.
Install
pip install agentmetrics-hermes
Configuration
Create ~/.config/hermes/agentmetrics.yaml:
api_key: am_your_key
server_url: http://localhost:4000
agent_id: my-hermes-agent
environment: production
Or set environment variables (take precedence over the file):
| Variable | Description |
|---|---|
AGENTMETRICS_API_KEY |
API key |
AGENTMETRICS_SERVER_URL |
Server URL |
AGENTMETRICS_AGENT_ID |
Agent identifier |
AGENTMETRICS_ENVIRONMENT |
Deployment environment |
What gets tracked
| Metric | Description |
|---|---|
input_tokens / output_tokens |
Aggregated LLM token usage |
cache_read_tokens / cache_write_tokens |
Prompt cache statistics |
estimated_cost_usd |
Computed from model pricing |
duration_ms |
Session wall-clock time |
tool_calls / tool_errors |
Per-step tool tracking |
llm_calls |
Number of model API requests |
secrets_blocked_count |
Credentials redacted before transmission |
error |
Exception message on failure (secrets scrubbed) |
Durability
Events are written to a local WAL before transmission. If the server is unreachable the plugin retries automatically via an internal circuit breaker. Events that exhaust all retries go to a dead-letter queue and are surfaced as audit_dlq_alert events.
Security
All event payloads are scanned for API keys, JWTs, and passwords before transmission. Set redaction_mode: debug in the config to disable scrubbing during local development (expires automatically after a configurable TTL).
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentmetrics_hermes-0.2.1.tar.gz.
File metadata
- Download URL: agentmetrics_hermes-0.2.1.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4e65b9e9952a5cb97afa3af2ffec5fc5dfbea577df9562ec852431aa7eb0336
|
|
| MD5 |
c404928e9ad0cae8e5785f162c989933
|
|
| BLAKE2b-256 |
8c8595002edc939ccb2782e7918e445b509760a09985fae02badcd0f3860b3c4
|
File details
Details for the file agentmetrics_hermes-0.2.1-py3-none-any.whl.
File metadata
- Download URL: agentmetrics_hermes-0.2.1-py3-none-any.whl
- Upload date:
- Size: 26.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18656da449417cbe2e54e4afe84cc8997b4912fe5a13db6953099400f4c5b43d
|
|
| MD5 |
a5166cb01683c9e3ff38c032dbfc1771
|
|
| BLAKE2b-256 |
6d76b96be44323ab37eebb35b40cc7afd9402b02ff8daa5cab91568437cc87e7
|