Skip to main content

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

Metric Type When
<prefix>.step.<kind> counter +1 every step
<prefix>.step.duration_ms timing every step with duration_ms > 0
<prefix>.tool.<name> counter +1 every step with tool_call
<prefix>.run.finish.<reason> counter +1 on run finish
<prefix>.run.duration_ms timing on run finish
<prefix>.run.cost_usd gauge on run finish
<prefix>.run.tokens_in gauge on run finish
<prefix>.run.tokens_out gauge on run finish

License

Apache-2.0.

Metadata

Release files for agentforge-statsd 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentforge-statsd 0.4.0
File Size Uploaded Provenance Actions
agentforge_statsd-0.4.0.tar.gz 9.5 kB With provenance Details for agentforge_statsd-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentforge-statsd 0.4.0
File Interpreter ABI Platform Actions
agentforge_statsd-0.4.0-py3-none-any.whl Python 3 none any Details for agentforge_statsd-0.4.0-py3-none-any.whl

Total release size: 19.6 kB

Release files / agentforge_statsd-0.4.0.tar.gz

Download URL agentforge_statsd-0.4.0.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e3686b432e34f16ba6205a2cb5952a7c92575e313a9798b89d427bd94dd51e40
BLAKE2b-256 checksum
How to use checksums
c4bd8a94bee238fae11fd9148500a98a15b6f0fc9e79c188faec1c8e5c8684b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 24, 2026.

Transparency log

Release files / agentforge_statsd-0.4.0-py3-none-any.whl

Download URL agentforge_statsd-0.4.0-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a1c8584d0122761d846b5b4a4bc3439f62862499f22e11eed20e498aed2d3eb
BLAKE2b-256 checksum
How to use checksums
40d1506e50adbfb3d75b5711ee38c482a56b406d10f3ff8e1a94eedd49209df0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 24, 2026.

Transparency log

Security for agentforge-statsd 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agentforge_statsd-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page