Catalog PyPI
PACKAGE EXPLORERView in registry

agentforge-statsd

PyPI

StatsD metrics emitter hook for AgentForge

agentaimetricsobservabilitystatsd
Versions collected1
Direct dependencies2From release 0.4.0
Last observed20 Oct, 21:58 UTC

README

Version 0.4.0 documentation

agentforge-statsd

StatsD metrics emitter for the AgentForge framework.

Implements the StepHook + FinishHook contracts on the existing agentforge.hooks entry-point so installing the package makes name: statsd available in modules.observability config blocks.

Installation

pip install agentforge-statsd[statsd]

The [statsd] extra pulls in the statsd>=4.0 Python client. Without the extra, the package is importable but the production factory raises ModuleError with pip remediation.

Usage

from agentforge import Agent
from agentforge_statsd import StatsdHook

hook = StatsdHook.from_config(
    host="statsd.internal",
    port=8125,
    prefix="agentforge.pr-reviewer",
)

agent = Agent(
    model="bedrock:...",
    on_step=hook,
    on_finish=hook,
)

Metrics emitted

MetricTypeWhen
<prefix>.step.<kind>counter +1every step
<prefix>.step.duration_mstimingevery step with duration_ms > 0
<prefix>.tool.<name>counter +1every step with tool_call
<prefix>.run.finish.<reason>counter +1on run finish
<prefix>.run.duration_mstimingon run finish
<prefix>.run.cost_usdgaugeon run finish
<prefix>.run.tokens_ingaugeon run finish
<prefix>.run.tokens_outgaugeon run finish

License

Apache-2.0.

Downloads & popularity

Awaiting observations

No metric observations yet

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

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.4.024 Jun 20262

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
scaffoldic/agentforge-py

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:58 UTC

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

Record identity

package:e4bf2a16faa0660a4aa8d9e87633bd025e22653f29cc3b8ead6af06b456264cc