statsd
A simple statsd client.
Decision gist · record as of 2026-08-14
Yes. statsd is a mature, zero-dependency client for a widely-used monitoring protocol. It has no known vulnerabilities, permissive licensing, and active maintenance. Install it if you need to send metrics to a statsd/Graphite stack; skip it only if your monitoring backend uses a different protocol (Prometheus, CloudWatch, etc.).AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- A statsd daemon must be running and reachable at the specified host and port (default localhost:8125).
- Low friction: pure Python wheel with no runtime dependencies.
- Maintenance is active with recent commits; the package has been stable since its early releases.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing use in commercial and proprietary projects with minimal restrictions beyond attribution.
last release 2022-11-06 (1377 days) · last repo commit 2026-02-17 · 553 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 17,993,050 downloads/mo, #1,093 on PyPI
Alternatives
Verify before relying
pip install statsd
import statsd
c = statsd.StatsClient('localhost', 8125)
c.incr('foo') # Increment counter
c.timing('stats.timed', 320) # Record 320ms timing- Whether the package supports UDP batching or other performance optimizations for high-volume metric submission.
- Current test coverage and CI/CD practices given the long gap since the latest release (2022-11-06).
What it is and what it does
statsd is a lightweight Python client for sending application metrics to a statsd daemon, which typically forwards them to Graphite for storage and visualization. It provides a simple API to increment counters, record timings, and report gauges—the core metric types used in monitoring systems. The library has no runtime dependencies and works across Python 3.7 through 3.11, making it easy to add to existing projects.
You instantiate a StatsClient with a host and port, then call methods like incr(), timing(), and gauge() to emit metrics. The client handles the UDP protocol communication with the daemon. It supports metric prefixing to namespace your stats, and the straightforward API makes it suitable for both simple scripts and large applications that need to feed metrics into a centralized monitoring stack.
Use it for
- Track request counts and response times in a web application for real-time performance dashboards.
- Monitor background job execution by recording job duration and success/failure counters.
- Measure database query performance by timing queries and reporting slow-query counts.
- Instrument microservices to emit custom business metrics (e.g., user signups, transactions) to a shared monitoring backend.
- Profile batch processing jobs by recording throughput and latency metrics during data pipelines.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
statsd is a mature, zero-dependency client for a widely-used monitoring protocol. It has no known vulnerabilities, permissive licensing, and active maintenance. Install it if you need to send metrics to a statsd/Graphite stack; skip it only if your monitoring backend uses a different protocol (Prometheus, CloudWatch, etc.).
Install
statsd on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Maintenance is active with recent commits; the package has been stable since its early releases.
A statsd daemon must be running and reachable at the specified host and port (default localhost:8125).
License in practice
MIT license is permissive, allowing use in commercial and proprietary projects with minimal restrictions beyond attribution.
Quickstart
pip install statsd
import statsd
c = statsd.StatsClient('localhost', 8125)
c.incr('foo') # Increment counter
c.timing('stats.timed', 320) # Record 320ms timing
Verify before relying
- Whether the package supports UDP batching or other performance optimizations for high-volume metric submission.
- Current test coverage and CI/CD practices given the long gap since the latest release (2022-11-06).
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 1,377 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 17,993,050 / month, #1,093 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules |
Evidence: statsd-4.0.1-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “counter timer gauge monitoring”
- statsdA Python client library that sends metrics to a statsd daemon,…
- statshogA Python client for sending metrics to StatsD servers and recording…
- aiodogstatsdAn asyncio-based client for sending metrics to StatsD and DogStatsD,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also django-statsd-mozilla · python-statsd · statsd-tags · statshog · statsd-python · graphyte · graphitesend · aiodogstatsd · datadog · netflix-spectator-py