Catalog PyPI
Back to packageRELEASE DETAILS

0.2.2

PyPI

agentmetrics-hermes

AgentMetrics observability plugin for Hermes agents

Published22 Jun 2026
Direct dependencies7
Transitive dependenciesNot calculated

README

Version 0.2.2 documentation

agentmetrics-hermes

PyPI License: MIT

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):

VariableDescription
AGENTMETRICS_API_KEYAPI key
AGENTMETRICS_SERVER_URLServer URL
AGENTMETRICS_AGENT_IDAgent identifier
AGENTMETRICS_ENVIRONMENTDeployment environment

What gets tracked

MetricDescription
input_tokens / output_tokensAggregated LLM token usage
cache_read_tokens / cache_write_tokensPrompt cache statistics
estimated_cost_usdComputed from model pricing
duration_msSession wall-clock time
tool_calls / tool_errorsPer-step tool tracking
llm_callsNumber of model API requests
secrets_blocked_countCredentials redacted before transmission
errorException 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

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 7

Native requirements
7 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
agentmetrics-shared
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
agentmetrics-shared>=0.2.0runtime
cryptography
Environment
{
  "extras": "",
  "marker": "extra == \"crypto\"",
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
cryptography>=41.0; extra == "crypto"runtime
pytest
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
pytest>=8.0; extra == "dev"runtime
pytest-cov
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
pytest-cov>=5.0; extra == "dev"runtime
ruff
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
ruff>=0.11.0; extra == "dev"runtime
mypy
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
mypy>=1.10; extra == "dev"runtime
hypothesis
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.11",
  "evaluation": "NOT_EVALUATED"
}
hypothesis>=6.0; extra == "dev"runtime

Distribution files

2 collected
agentmetrics_hermes-0.2.2-py3-none-any.whl

bdist_wheel · 26.28 KB · Python py3

Source file
agentmetrics_hermes-0.2.2.tar.gz

sdist · 30.11 KB · Python source

Source file

Repository

PENDING
andalabx/agentmetrics

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:43 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:f7084d2c8e64b96f9b609ca3125e80ecc67898b3ccd35296c27ea0bee1f875db

Other collected versions

View all collected versions →