StatsD: Network daemon for stats aggregation
UDP/TCP metrics collector with pluggable backend support.
Learn more about statsd
StatsD is a network daemon written in Node.js that receives metrics from applications and aggregates them before sending to backend services. It listens for incoming statistics on UDP and TCP ports, organizing metrics into user-defined buckets with configurable flush intervals. The daemon supports multiple metric types including counters, timers, and gauges, with a simple line protocol for metric submission. It is commonly deployed as a metrics collection layer between applications and time-series databases or monitoring systems.
Pluggable backend architecture
Supports multiple backend services through a plugin interface, allowing metrics to be sent to Graphite, InfluxDB, or other systems without modifying core code.
UDP and TCP support
Accepts metrics over both UDP for low-overhead fire-and-forget submission and TCP for guaranteed delivery, accommodating different application requirements.
Simple line protocol
Uses a minimal text-based format (metricname:value|type) that requires no client libraries, allowing metrics to be sent from any language or tool via basic network calls.
const StatsD = require('node-statsd');
const client = new StatsD({
host: 'localhost',
port: 8125
});
// Increment a counter for user signups
client.increment('user.signup');
client.increment('api.requests', 1);
client.decrement('active.connections');Top in Developer Tools
Related Repositories
Discover similar tools and frameworks used by developers
nanoid
Compact 21-character cryptographic IDs with URL-safe encoding.
python-dotenv
Parse and load .env files into Python environments.
qr-scanner
Webcam and image QR detection with native API fallback.
awesome-css-frameworks
Categorized catalog of CSS frameworks with GitHub metrics.
jsdom
Pure JavaScript implementation of web standards for Node.js.