python-statsd
statsd is a client for Etsy's node-js statsd server. A proxy for the Graphite stats collection and graphing server.
What it is and what it does
python-statsd is a Python client for sending application metrics to Etsy's statsd server, which acts as a UDP-based proxy that aggregates and forwards metrics to Graphite for storage and visualization. It provides a simple API for recording timers, counters, gauges, and raw metric data, with support for sampling and connection configuration.
The library is designed for low-overhead metric collection in production applications. It sends data via UDP to a statsd server (default localhost:8125), which then handles aggregation and forwarding to Graphite. The package has no runtime dependencies and installs easily, but is no longer maintained—the last release was in 2017 and the repository received its final commit in 2019.
Use it for:
- Track application performance metrics like request latency and throughput in production systems.
- Monitor custom business metrics (e.g., user signups, transactions) alongside infrastructure metrics.
- Collect timing data for code sections using the Timer class to measure execution performance.
- Send pre-aggregated or raw metric data directly to Graphite via statsd for bandwidth efficiency.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A client library for sending metrics to Etsy's statsd server, which acts as a front-end proxy to Graphite for stats collection and graphing.
No. While the package is simple and has no dependencies, it is abandoned and unmaintained since 2017. For new projects, use an actively maintained alternative like statsd or a modern observability client. Only consider it for legacy systems already using it where switching would introduce unnecessary risk.
Install
python-statsd on PyPI
pip
pip install python-statsduv
uv add python-statsdpoetry
poetry add python-statsdInstalling python-statsd
Before you install
Installation is straightforward with no runtime dependencies. However, the package is abandoned—last release was in 2017 and last commit in 2019—so it receives no active maintenance or security updates.
License in practice
BSD license is permissive, allowing commercial and private use with minimal restrictions.
Quickstart
import statsd
timer = statsd.Timer('MyApplication')
timer.start()
# do something
timer.stop('SomeTimer')
counter = statsd.Counter('MyApplication')
counter += 1
Requires a running statsd server (typically on localhost:8125) to receive and forward metrics.
Verify before relying
- Whether the package works correctly with modern Python versions (support unspecified in metadata).
- Whether the package is compatible with current versions of Graphite and statsd servers.
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 3,265 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 87,528/month — #13,790 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: python_statsd-2.1.0-py2.py3-none-any.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
statsdA Python client library that sends metrics to a…
permissive · top 5,000 on PyPI
statsd-tagsA Python client for sending metrics to…
permissive · top 15,000 on PyPI
statshogA Python client for sending metrics to StatsD…
permissive · top 5,000 on PyPI
graphitesendSends metrics to Graphite's Carbon backend over…
unclear · top 15,000 on PyPI
graphytegraphyte sends metrics to a Graphite/Carbon…
permissive · top 15,000 on PyPI
django-statsd-mozillaProvides Django integration with statsd for…
permissive · top 15,000 on PyPI
statsd-pythonA Python client library for sending metrics to…
permissive · top 15,000 on PyPI
datadogProvides a Python client library to send…
permissive · top 1,000 on PyPI
aiodogstatsdAn asyncio-based client for sending metrics to…
permissive · top 15,000 on PyPI
Flask-DatadogFlask-Datadog provides a Flask extension to…
permissive · top 15,000 on PyPI